GstPlay.PlayStreamInfo

g GObject.Object GObject.Object GstPlay.PlayStreamInfo GstPlay.PlayStreamInfo GObject.Object->GstPlay.PlayStreamInfo

Subclasses:

GstPlay.PlayAudioInfo, GstPlay.PlaySubtitleInfo, GstPlay.PlayVideoInfo

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 GstPlay.PlayStreamInfo(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

GstPlay.PlayStreamInfoClass

Base structure for information concerning a media stream. Depending on the stream type, one can find more media-specific information in GstPlay.PlayVideoInfo, GstPlay.PlayAudioInfo, GstPlay.PlaySubtitleInfo.

New in version 1.20.

get_caps()
Returns:

the Gst.Caps of the stream or None if unknown.

Return type:

Gst.Caps or None

New in version 1.20.

get_codec()
Returns:

codec string or None on unknown.

Return type:

str or None

A string describing codec used in GstPlay.PlayStreamInfo.

New in version 1.20.

get_index()
Returns:

the stream index of this stream.

Return type:

int

Function to get stream index from GstPlay.PlayStreamInfo instance or -1 if unknown.

New in version 1.20.

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”)

New in version 1.20.

get_tags()
Returns:

the tags contained in this stream.

Return type:

Gst.TagList or None

New in version 1.20.