Class SphericalVideo
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.MediaPlayer.dll
Provides the ability to control the spherical video for Player.
public class SphericalVideo
- Inheritance
-
objectSphericalVideo
Properties
View SourceIsEnabled
Gets or sets the spherical mode.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The player has already been disposed of. |
System.InvalidOperationException | The player is not in the valid state. |
Player
Gets the Player that owns this instance.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Methods
View SourceGetDirectionOfView()
Gets the direction of view for spherical video.
Declaration
public DirectionOfView GetDirectionOfView()
Returns
Type | Description |
---|---|
DirectionOfView | The DirectionOfView containing the angle information. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
GetFieldOfView()
Gets the field of view for spherical video.
Declaration
public FieldOfView GetFieldOfView()
Returns
Type | Description |
---|---|
FieldOfView | The FieldOfView containing the degree information to display. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
GetZoom()
Gets the level of the zoom of spherical video.
Declaration
public float GetZoom()
Returns
Type | Description |
---|---|
float | The current zoom level of spherical video. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The player has already been disposed of. |
See Also
View SourceIsSphericalContent()
Gets information whether the current content of the player is spherical.
Declaration
public bool IsSphericalContent()
Returns
Type | Description |
---|---|
bool | True if the current content is spherical; otherwise false. |
Remarks
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
System.InvalidOperationException | The Player that this instance belongs to is not in the valid state. |
SetDirectionOfView(DirectionOfView)
Sets the direction of view for spherical video.
Declaration
public void SetDirectionOfView(DirectionOfView directionOfView)
Parameters
Type | Name | Description |
---|---|---|
DirectionOfView | directionOfView | The angle values around the vertical and lateral axis. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
System.ArgumentOutOfRangeException |
|
See Also
View SourceSetFieldOfView(FieldOfView)
Sets the field of view for spherical video.
Declaration
public void SetFieldOfView(FieldOfView fieldOfView)
Parameters
Type | Name | Description |
---|---|---|
FieldOfView | fieldOfView | The degree values to display. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
System.ArgumentOutOfRangeException |
|
See Also
View SourceSetZoom(float)
Sets the level of the zoom of spherical video.
Declaration
public void SetZoom(float level)
Parameters
Type | Name | Description |
---|---|---|
float | level | The zoom level. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The player has already been disposed of. |
System.ArgumentOutOfRangeException |
|
See Also
View SourceSetZoomWithFieldOfView(float, FieldOfView)
Sets the zoom with the field of view for spherical video.
Declaration
public void SetZoomWithFieldOfView(float level, FieldOfView fieldOfView)
Parameters
Type | Name | Description |
---|---|---|
float | level | The zoom level. |
FieldOfView | fieldOfView | The degree values to display. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
System.ArgumentOutOfRangeException |
|