GstPlay.PlayMediaInfo

g GObject.Object GObject.Object GstPlay.PlayMediaInfo GstPlay.PlayMediaInfo GObject.Object->GstPlay.PlayMediaInfo

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

GObject.Object

Abstract:

No

Structure:

GstPlay.PlayMediaInfoClass

Structure containing the media information of a URI.

New in version 1.20.

get_audio_streams()
Returns:

A GLib.List of matching GstPlay.PlayAudioInfo.

Return type:

[GstPlay.PlayAudioInfo]

New in version 1.20.

get_container_format()
Returns:

the container format or None if unknown.

Return type:

str or None

New in version 1.20.

get_duration()
Returns:

duration of the media.

Return type:

int

New in version 1.20.

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.

New in version 1.20.

get_number_of_audio_streams()
Returns:

number of audio streams.

Return type:

int

New in version 1.20.

get_number_of_streams()
Returns:

number of total streams.

Return type:

int

New in version 1.20.

get_number_of_subtitle_streams()
Returns:

number of subtitle streams.

Return type:

int

New in version 1.20.

get_number_of_video_streams()
Returns:

number of video streams.

Return type:

int

New in version 1.20.

get_stream_list()
Returns:

A GLib.List of matching GstPlay.PlayStreamInfo.

Return type:

[GstPlay.PlayStreamInfo]

New in version 1.20.

get_subtitle_streams()
Returns:

A GLib.List of matching GstPlay.PlaySubtitleInfo.

Return type:

[GstPlay.PlaySubtitleInfo]

New in version 1.20.

get_tags()
Returns:

the tags contained in media info.

Return type:

Gst.TagList or None

New in version 1.20.

get_title()
Returns:

the media title or None if unknown.

Return type:

str or None

New in version 1.20.

get_uri()
Returns:

the URI associated with GstPlay.PlayMediaInfo.

Return type:

str

New in version 1.20.

get_video_streams()
Returns:

A GLib.List of matching GstPlay.PlayVideoInfo.

Return type:

[GstPlay.PlayVideoInfo]

New in version 1.20.

is_live()
Returns:

True if the media is live.

Return type:

bool

New in version 1.20.

is_seekable()
Returns:

True if the media is seekable.

Return type:

bool

New in version 1.20.