Class StreamInfo
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.MediaPlayer.dll
- API Level:
- 3
Provides a means to retrieve stream information.
public class StreamInfo
- Inheritance
-
StreamInfo
Properties
View SourcePlayer
Gets the Player that owns this instance.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
API Level: 3
Methods
View SourceGetAlbumArt()
Retrieves the album art of the stream, or null if there is no album art data.
Declaration
public byte[] GetAlbumArt()
Returns
Type | Description |
---|---|
Byte[] | Raw byte array if album art exists; otherwise null. |
Remarks
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
InvalidOperationException | The Player that this instance belongs to is not in the valid state. |
API Level: 3
View SourceGetAudioCodec()
Retrieves the codec name of the audio or null if there is no audio.
Declaration
public string GetAudioCodec()
Returns
Type | Description |
---|---|
String | A string that represents the codec name. |
API Level: 3
View SourceGetAudioProperties()
Gets the properties of the audio.
Declaration
public AudioStreamProperties GetAudioProperties()
Returns
Type | Description |
---|---|
AudioStreamProperties | A AudioStreamProperties that contains the audio stream information. |
Remarks
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
InvalidOperationException | The Player that this instance belongs to is not in the valid state. |
API Level: 3
View SourceGetDuration()
Gets the duration.
Declaration
public int GetDuration()
Returns
Type | Description |
---|---|
Int32 | The duration of the stream. |
Remarks
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
InvalidOperationException | The Player that this instance belongs to is not in the valid state. |
See Also
API Level: 3
View SourceGetDurationNanoseconds()
Gets the duration in nanoseconds.
Declaration
public long GetDurationNanoseconds()
Returns
Type | Description |
---|---|
Int64 | The duration of the stream. |
Remarks
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
InvalidOperationException | The Player that this instance belongs to is not in the valid state. |
See Also
API Level: 5
View SourceGetMetadata(StreamMetadataKey)
Gets the metadata with the specified key.
Declaration
public 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 |
---|---|
ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
InvalidOperationException | The Player that this instance belongs to is not in the valid state. |
API Level: 3
View SourceGetVideoCodec()
Retrieves the codec name of the video or null if there is no video.
Declaration
public string GetVideoCodec()
Returns
Type | Description |
---|---|
String | A string that represents the codec name. |
API Level: 3
View SourceGetVideoProperties()
Gets the properties of the video.
Declaration
public VideoStreamProperties GetVideoProperties()
Returns
Type | Description |
---|---|
VideoStreamProperties | A VideoStreamProperties that contains the video stream information. |
Remarks
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The Player that this instance belongs to has been disposed of. |
InvalidOperationException | The Player that this instance belongs to is not in the valid state. |