GstPlayer.PlayerStreamInfo

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

Subclasses:

GstPlayer.PlayerAudioInfo, GstPlayer.PlayerSubtitleInfo, GstPlayer.PlayerVideoInfo

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_caps ()

get_codec ()

get_index ()

get_stream_type ()

get_tags ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GstPlayer.PlayerStreamInfo(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

GstPlayer.PlayerStreamInfoClass

Base structure for information concerning a media stream. Depending on the stream type, one can find more media-specific information in GstPlayer.PlayerVideoInfo, GstPlayer.PlayerAudioInfo, GstPlayer.PlayerSubtitleInfo.

get_caps()
Returns:

the Gst.Caps of the stream.

Return type:

Gst.Caps or None

get_codec()
Returns:

codec string or None on unknown.

Return type:

str or None

A string describing codec used in GstPlayer.PlayerStreamInfo.

get_index()
Returns:

the stream index of this stream.

Return type:

int

Function to get stream index from GstPlayer.PlayerStreamInfo instance or -1 if unknown.

get_stream_type()
Returns:

a human readable name

Return type:

str

Function to return human readable name for the stream type of the given self (ex: “audio”, “video”, “subtitle”)

get_tags()
Returns:

the tags contained in this stream.

Return type:

Gst.TagList or None