GstPlayer.PlayerMediaInfo

g GObject.Object GObject.Object GstPlayer.PlayerMediaInfo GstPlayer.PlayerMediaInfo GObject.Object->GstPlayer.PlayerMediaInfo

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_audio_streams ()

get_container_format ()

get_duration ()

get_image_sample ()

get_number_of_audio_streams ()

get_number_of_streams ()

get_number_of_subtitle_streams ()

get_number_of_video_streams ()

get_stream_list ()

get_subtitle_streams ()

get_tags ()

get_title ()

get_uri ()

get_video_streams ()

is_live ()

is_seekable ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GstPlayer.PlayerMediaInfo(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GstPlayer.PlayerMediaInfoClass

Structure containing the media information of a URI.

get_audio_streams()
Returns:

A GLib.List of matching GstPlayer.PlayerAudioInfo.

Return type:

[GstPlayer.PlayerAudioInfo]

get_container_format()
Returns:

the container format or None if unknown.

Return type:

str or None

get_duration()
Returns:

duration of the media or Gst.CLOCK_TIME_NONE if unknown.

Return type:

int

get_image_sample()
Returns:

Gst.Sample or None.

Return type:

Gst.Sample or None

Function to get the image (or preview-image) stored in taglist. Application can use gst_sample_*_() API’s to get caps, buffer etc.

get_number_of_audio_streams()
Returns:

number of audio streams or 0 if unknown.

Return type:

int

New in version 1.12.

get_number_of_streams()
Returns:

number of total streams or 0 if unknown.

Return type:

int

New in version 1.12.

get_number_of_subtitle_streams()
Returns:

number of subtitle streams or 0 if unknown.

Return type:

int

New in version 1.12.

get_number_of_video_streams()
Returns:

number of video streams or 0 if unknown.

Return type:

int

New in version 1.12.

get_stream_list()
Returns:

A GLib.List of matching GstPlayer.PlayerStreamInfo.

Return type:

[GstPlayer.PlayerStreamInfo]

get_subtitle_streams()
Returns:

A GLib.List of matching GstPlayer.PlayerSubtitleInfo.

Return type:

[GstPlayer.PlayerSubtitleInfo]

get_tags()
Returns:

the tags contained in media info.

Return type:

Gst.TagList or None

get_title()
Returns:

the media title or None if unknown.

Return type:

str or None

get_uri()
Returns:

the URI associated with GstPlayer.PlayerMediaInfo.

Return type:

str

get_video_streams()
Returns:

A GLib.List of matching GstPlayer.PlayerVideoInfo.

Return type:

[GstPlayer.PlayerVideoInfo]

is_live()
Returns:

True if the media is live.

Return type:

bool

is_seekable()
Returns:

True if the media is seekable.

Return type:

bool