GstPlayer.PlayerAudioInfo

g GObject.Object GObject.Object GstPlayer.PlayerStreamInfo GstPlayer.PlayerStreamInfo GObject.Object->GstPlayer.PlayerStreamInfo GstPlayer.PlayerAudioInfo GstPlayer.PlayerAudioInfo GstPlayer.PlayerStreamInfo->GstPlayer.PlayerAudioInfo

Subclasses:

None

Methods

Inherited:

GstPlayer.PlayerStreamInfo (5), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_bitrate ()

get_channels ()

get_language ()

get_max_bitrate ()

get_sample_rate ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GstPlayer.PlayerAudioInfo(**kwargs)
Bases:

GstPlayer.PlayerStreamInfo

Abstract:

No

Structure:

GstPlayer.PlayerAudioInfoClass

GstPlayer.PlayerStreamInfo specific to audio streams.

get_bitrate()
Returns:

the audio bitrate in GstPlayer.PlayerAudioInfo or -1 if unknown.

Return type:

int

get_channels()
Returns:

the number of audio channels in GstPlayer.PlayerAudioInfo or 0 if unknown.

Return type:

int

get_language()
Returns:

the language of the stream, or None if unknown.

Return type:

str or None

get_max_bitrate()
Returns:

the audio maximum bitrate in GstPlayer.PlayerAudioInfo or -1 if unknown.

Return type:

int

get_sample_rate()
Returns:

the audio sample rate in GstPlayer.PlayerAudioInfo or 0 if unknown.

Return type:

int