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
    object
    SphericalVideo

    Properties

    View Source

    IsEnabled

    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.

    View Source

    Player

    Gets the Player that owns this instance.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player

    Methods

    View Source

    GetDirectionOfView()

    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.

    View Source

    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.

    View Source

    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
    SetZoom(float)
    View Source

    IsSphericalContent()

    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

    The Player that owns this instance must be in the Ready, Playing, or Paused state.

    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.

    View Source

    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

    should be in range of [-3.141593, 3.141593].
    -or-
    should be in range of [-1.570796, 1.570796].

    See Also
    DirectionOfView
    View Source

    SetFieldOfView(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

    is less than 1.
    -or-
    is greater than 360.
    -or-
    is less than 1.
    -or-
    is greater than 180.

    See Also
    FieldOfView
    View Source

    SetZoom(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

    is less than 1.0. -or-
    level is greater than 10.0.

    See Also
    GetZoom()
    View Source

    SetZoomWithFieldOfView(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

    is less than 1.0. -or-
    level is greater than 10.0.
    -or-
    is less than 1.
    -or-
    is greater than 360.
    -or-
    is less than 1.
    -or-
    is greater than 180.

    See Also
    FieldOfView
    GetZoom()
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX