GstMse.MseSrc¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gst.Element (82), Gst.Object (27), GObject.Object (37), Gst.URIHandler (4)
- Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
Virtual Methods¶
- Inherited:
 Gst.Element (16), Gst.Object (1), GObject.Object (7), Gst.URIHandler (2)
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
The duration of the stream as a GstClockTime  | 
||
r  | 
The number of audio tracks in the Media Source  | 
||
r  | 
The number of text tracks in the Media Source  | 
||
r  | 
The number of video tracks in the Media Source  | 
||
r  | 
The playback position as a GstClockTime  | 
||
r  | 
The Ready State of this Element  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class GstMse.MseSrc(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
GstMse.MseSrcis a source Element that interacts with aGstMse.MediaSourceto consumeGst.Samples processed by the Media Source and supplies them to the containingGst.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:
 
Gets the duration of self.
New in version 1.24.
- get_n_audio()¶
 - Returns:
 the number of audio tracks available from this source
- Return type:
 
New in version 1.24.
- get_n_text()¶
 - Returns:
 the number of text tracks available from this source
- Return type:
 
New in version 1.24.
- get_n_video()¶
 - Returns:
 the number of video tracks available from this source
- Return type:
 
New in version 1.24.
- get_position()¶
 - Returns:
 The playback position of this Element as a #GstClockTime
- Return type:
 
Gets the current playback position of self.
New in version 1.24.
- get_ready_state()¶
 - Returns:
 the current
GstMse.MseSrcReadyState- Return type:
 
The Ready State of self, describing to what level it can supply content for the current
GstMse.MseSrc:position. This is a separate concept fromGstMse.MediaSource:ready-state: and corresponds to the HTML Media Element’s Ready State.New in version 1.24.
Property Details¶
- GstMse.MseSrc.props.duration¶
 - 
The duration of the stream as a #GstClockTime
New in version 1.24.
 
- GstMse.MseSrc.props.n_audio¶
 - 
The number of audio tracks in the Media Source
New in version 1.24.
 
- GstMse.MseSrc.props.n_text¶
 - 
The number of text tracks in the Media Source
New in version 1.24.
 
- GstMse.MseSrc.props.n_video¶
 - 
The number of video tracks in the Media Source
New in version 1.24.
 
- GstMse.MseSrc.props.position¶
 - 
The playback position as a #GstClockTime
New in version 1.24.
 
- GstMse.MseSrc.props.ready_state¶
 - Name:
 ready-state- Type:
 - Default Value:
 - Flags:
 
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 fromGstMse.MediaSource:ready-state: and corresponds to the HTML Media Element’s Ready State.New in version 1.24.