Class PlayerTrackInfo

    Definition

    Namespace:
    Tizen.Multimedia
    Assembly:
    Tizen.Multimedia.MediaPlayer.dll

    Provides a means to retrieve the track information.

    public class PlayerTrackInfo
    Inheritance
    object
    PlayerTrackInfo

    Properties

    View Source

    Selected

    Gets or sets the selected track index.

    Declaration
    public int Selected { get; set; }
    Property Value
    Type Description
    int

    The currently selected track index.

    Remarks

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

    Exceptions
    Type Condition
    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.

    System.ArgumentOutOfRangeException

    value is less than zero.
    -or-
    value is equal to or greater than GetCount().

    NotAvailableException

    If audio offload is enabled by calling IsEnabled. (Since tizen 6.0)

    See Also
    SubtitleTrackInfo
    AudioTrackInfo

    Methods

    View Source

    GetCount()

    Gets the number of tracks.

    Declaration
    public int GetCount()
    Returns
    Type Description
    int

    The number of tracks.

    Remarks

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

    Exceptions
    Type Condition
    System.ObjectDisposedException

    The Player that this instance belongs to has been disposed of.

    NotAvailableException

    The Player that this instance belongs to is not in the valid state. -or-
    If audio offload is enabled by calling IsEnabled. (Since tizen 6.0)

    See Also
    SubtitleTrackInfo
    AudioTrackInfo
    View Source

    GetLanguageCode(int)

    Gets the language code for the specified index, or null if the language is undefined.

    Declaration
    public string GetLanguageCode(int index)
    Parameters
    Type Name Description
    int index

    The index of track.

    Returns
    Type Description
    string

    The number of tracks.

    Remarks

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

    The language codes are defined in ISO 639-1.

    Exceptions
    Type Condition
    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.

    System.ArgumentOutOfRangeException

    index is less than zero.
    -or-
    index is equal to or greater than GetCount().

    NotAvailableException

    If audio offload is enabled by calling IsEnabled. (Since tizen 6.0)

    See Also
    SubtitleTrackInfo
    AudioTrackInfo

    See Also

    SubtitleTrackInfo
    AudioTrackInfo
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX