GstMse.MseSrc

g GObject.GInterface GObject.GInterface Gst.URIHandler Gst.URIHandler GObject.GInterface->Gst.URIHandler GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Element Gst.Element GstMse.MseSrc GstMse.MseSrc Gst.Element->GstMse.MseSrc Gst.Object->Gst.Element Gst.URIHandler->GstMse.MseSrc

Subclasses:

None

Methods

Inherited:

Gst.Element (82), Gst.Object (27), GObject.Object (37), Gst.URIHandler (4)

Structs:

Gst.ElementClass (10), GObject.ObjectClass (5)

get_duration ()

get_n_audio ()

get_n_text ()

get_n_video ()

get_position ()

get_ready_state ()

Virtual Methods

Inherited:

Gst.Element (16), Gst.Object (1), GObject.Object (7), Gst.URIHandler (2)

Properties

Inherited:

Gst.Object (2)

Name

Type

Flags

Short Description

duration

int

r/w

The duration of the stream as a GstClockTime

n-audio

int

r

The number of audio tracks in the Media Source

n-text

int

r

The number of text tracks in the Media Source

n-video

int

r

The number of video tracks in the Media Source

position

int

r

The playback position as a GstClockTime

ready-state

GstMse.MseSrcReadyState

r

The Ready State of this Element

Signals

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Element (3), Gst.Object (1), GObject.Object (1)

Class Details

class GstMse.MseSrc(**kwargs)
Bases:

Gst.Element, Gst.URIHandler

Abstract:

No

Structure:

GstMse.MseSrcClass

GstMse.MseSrc is a source Element that interacts with a GstMse.MediaSource to consume Gst.Sample s processed by the Media Source and supplies them to the containing Gst.Pipeline. In the perspective of the Media Source API, this element fulfills the basis of the Media Element’s role relating to working with a Media Source. The remaining responsibilities are meant to be fulfilled by the application and #GstPlay can be used to satisfy many of them.

Once added to a Pipeline, this element should be attached to a Media Source using GstMse.MediaSource.attach().

New in version 1.24.

get_duration()
Returns:

The duration of this stream as a #GstClockTime

Return type:

int

Gets the duration of self.

Specification

New in version 1.24.

get_n_audio()
Returns:

the number of audio tracks available from this source

Return type:

int

New in version 1.24.

get_n_text()
Returns:

the number of text tracks available from this source

Return type:

int

New in version 1.24.

get_n_video()
Returns:

the number of video tracks available from this source

Return type:

int

New in version 1.24.

get_position()
Returns:

The playback position of this Element as a #GstClockTime

Return type:

int

Gets the current playback position of self.

Specification

New in version 1.24.

get_ready_state()
Returns:

the current GstMse.MseSrcReadyState

Return type:

GstMse.MseSrcReadyState

The Ready State of self, describing to what level it can supply content for the current GstMse.MseSrc :position. This is a separate concept from GstMse.MediaSource :ready-state: and corresponds to the HTML Media Element’s Ready State.

Specification

New in version 1.24.

Property Details

GstMse.MseSrc.props.duration
Name:

duration

Type:

int

Default Value:

18446744073709551615

Flags:

READABLE, WRITABLE

The duration of the stream as a #GstClockTime

Specification

New in version 1.24.

GstMse.MseSrc.props.n_audio
Name:

n-audio

Type:

int

Default Value:

0

Flags:

READABLE

The number of audio tracks in the Media Source

New in version 1.24.

GstMse.MseSrc.props.n_text
Name:

n-text

Type:

int

Default Value:

0

Flags:

READABLE

The number of text tracks in the Media Source

New in version 1.24.

GstMse.MseSrc.props.n_video
Name:

n-video

Type:

int

Default Value:

0

Flags:

READABLE

The number of video tracks in the Media Source

New in version 1.24.

GstMse.MseSrc.props.position
Name:

position

Type:

int

Default Value:

18446744073709551615

Flags:

READABLE

The playback position as a #GstClockTime

Specification

New in version 1.24.

GstMse.MseSrc.props.ready_state
Name:

ready-state

Type:

GstMse.MseSrcReadyState

Default Value:

GstMse.MseSrcReadyState.NOTHING

Flags:

READABLE

The Ready State of this element, describing to what level it can supply content for the current GstMse.MseSrc :position. This is a separate concept from GstMse.MediaSource :ready-state: and corresponds to the HTML Media Element’s Ready State.

Specification

New in version 1.24.