Class StreamInfo
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.MediaPlayer.dll
Provides a means to retrieve stream information.
C#Copypublic class StreamInfo
- Inheritance
-
objectStreamInfo
Properties
Declaration
C#Copypublic Player Player { get; }
Property Value
| Type | Description |
|---|---|
| Player |
Methods
GetAlbumArt()
Retrieves the album art of the stream, or null if there is no album art data.
Declaration
C#Copypublic byte[] GetAlbumArt()
Returns
| Type | Description |
|---|---|
| byte[] | Raw byte array if album art exists; otherwise null. |
Remarks
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. |
Declaration
C#Copypublic string GetAudioCodec()
Returns
| Type | Description |
|---|---|
| string | A string that represents the codec name. |
Declaration
C#Copypublic AudioStreamProperties GetAudioProperties()
Returns
| Type | Description |
|---|---|
| AudioStreamProperties | A AudioStreamProperties that contains the audio stream information. |
Remarks
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. |
Declaration
C#Copypublic int GetDuration()
Returns
| Type | Description |
|---|---|
| int | The duration of the stream. |
Remarks
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. |
See Also
Declaration
C#Copypublic long GetDurationNanoseconds()
Returns
| Type | Description |
|---|---|
| long | The duration of the stream. |
Remarks
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. |
See Also
Declaration
C#Copypublic string GetMetadata(StreamMetadataKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| StreamMetadataKey | key | The key to query. |
Returns
| Type | Description |
|---|---|
| string | A string that represents the value of the specified key. |
Remarks
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. |
Declaration
C#Copypublic string GetVideoCodec()
Returns
| Type | Description |
|---|---|
| string | A string that represents the codec name. |
Declaration
C#Copypublic VideoStreamProperties GetVideoProperties()
Returns
| Type | Description |
|---|---|
| VideoStreamProperties | A VideoStreamProperties that contains the video stream information. |
Remarks
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. |