Class PlayerTrackInfo
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.MediaPlayer.dll
- API Level:
- 3
Provides a means to retrieve the track information.
C#Copypublic class PlayerTrackInfo
- Inheritance
-
System.ObjectPlayerTrackInfo
Properties
Declaration
C#Copypublic int Selected { get; set; }
Property Value
Type | Description |
---|---|
Int32 | The currently selected track index. |
Remarks
Exceptions
Type | Condition |
---|---|
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 |
|
NotAvailableException | If audio offload is enabled by calling IsEnabled. (Since tizen 6.0) |
API Level: 3
Methods
Declaration
C#Copypublic int GetCount()
Returns
Type | Description |
---|---|
Int32 | The number of tracks. |
Remarks
Exceptions
Type | Condition |
---|---|
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- |
API Level: 3
GetLanguageCode(Int32)
Gets the language code for the specified index, or null if the language is undefined.
Declaration
C#Copypublic string GetLanguageCode(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of track. |
Returns
Type | Description |
---|---|
System.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 |
---|---|
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 |
|
NotAvailableException | If audio offload is enabled by calling IsEnabled. (Since tizen 6.0) |