Class StreamInfo

Definition

Namespace:
Tizen.Multimedia
Assembly:
Tizen.Multimedia.MediaPlayer.dll
API Level:
3

Provides a means to retrieve stream information.

C#
Copy
public class StreamInfo
Inheritance
StreamInfo

Properties

View Source

Player

Gets the Player that owns this instance.

Declaration
C#
Copy
public Player Player { get; }
Property Value
Type Description
Player
API Level: 3

Methods

View Source

GetAlbumArt()

Retrieves the album art of the stream, or null if there is no album art data.

Declaration
C#
Copy
public byte[] GetAlbumArt()
Returns
Type Description
System.Byte[]

Raw byte array if album art exists; otherwise null.

Remarks

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

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 Source

GetAudioCodec()

Retrieves the codec name of the audio or null if there is no audio.

Declaration
C#
Copy
public string GetAudioCodec()
Returns
Type Description
System.String

A string that represents the codec name.

API Level: 3
View Source

GetAudioProperties()

Gets the properties of the audio.

Declaration
C#
Copy
public AudioStreamProperties GetAudioProperties()
Returns
Type Description
AudioStreamProperties

A AudioStreamProperties that contains the audio stream information.

Remarks

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

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 Source

GetDuration()

Gets the duration.

Declaration
C#
Copy
public int GetDuration()
Returns
Type Description
System.Int32

The duration of the stream.

Remarks

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

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 Source

GetDurationNanoseconds()

Gets the duration in nanoseconds.

Declaration
C#
Copy
public long GetDurationNanoseconds()
Returns
Type Description
System.Int64

The duration of the stream.

Remarks

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

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 Source

GetMetadata(StreamMetadataKey)

Gets the metadata with the specified key.

Declaration
C#
Copy
public string GetMetadata(StreamMetadataKey key)
Parameters
Type Name Description
StreamMetadataKey key

The key to query.

Returns
Type Description
System.String

A string that represents the value of the specified key.

Remarks

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

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 Source

GetVideoCodec()

Retrieves the codec name of the video or null if there is no video.

Declaration
C#
Copy
public string GetVideoCodec()
Returns
Type Description
System.String

A string that represents the codec name.

API Level: 3
View Source

GetVideoProperties()

Gets the properties of the video.

Declaration
C#
Copy
public VideoStreamProperties GetVideoProperties()
Returns
Type Description
VideoStreamProperties

A VideoStreamProperties that contains the video stream information.

Remarks

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

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