GstMseSrc
GstMseSrc is a source Element that interacts with a GstMediaSource to consume GstSamples processed by the Media Source and supplies them to the containing GstPipeline. 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 gst_media_source_attach.
GstMseSrc
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstMseSrc
Since : 1.24
Class structure
GstMse.MseSrc
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──GstMse.MseSrc
Since : 1.24
GstMse.MseSrc
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──GstMse.MseSrc
Since : 1.24
Methods
gst_mse_src_get_duration
GstClockTime gst_mse_src_get_duration (GstMseSrc * self)
Gets the duration of self.
Parameters:
self
–
GstMseSrc instance
The duration of this stream as a GstClockTime
Since : 1.24
GstMse.MseSrc.prototype.get_duration
function GstMse.MseSrc.prototype.get_duration(): {
// javascript wrapper for 'gst_mse_src_get_duration'
}
Gets the duration of self.
Parameters:
GstMse.MseSrc instance
Since : 1.24
GstMse.MseSrc.get_duration
def GstMse.MseSrc.get_duration (self):
#python wrapper for 'gst_mse_src_get_duration'
Gets the duration of self.
Parameters:
GstMse.MseSrc instance
Since : 1.24
gst_mse_src_get_n_audio
guint gst_mse_src_get_n_audio (GstMseSrc * self)
Parameters:
self
–
GstMseSrc instance
the number of audio tracks available from this source
Since : 1.24
GstMse.MseSrc.prototype.get_n_audio
function GstMse.MseSrc.prototype.get_n_audio(): {
// javascript wrapper for 'gst_mse_src_get_n_audio'
}
Parameters:
GstMse.MseSrc instance
the number of audio tracks available from this source
Since : 1.24
GstMse.MseSrc.get_n_audio
def GstMse.MseSrc.get_n_audio (self):
#python wrapper for 'gst_mse_src_get_n_audio'
Parameters:
GstMse.MseSrc instance
the number of audio tracks available from this source
Since : 1.24
gst_mse_src_get_n_text
guint gst_mse_src_get_n_text (GstMseSrc * self)
Parameters:
self
–
GstMseSrc instance
the number of text tracks available from this source
Since : 1.24
GstMse.MseSrc.prototype.get_n_text
function GstMse.MseSrc.prototype.get_n_text(): {
// javascript wrapper for 'gst_mse_src_get_n_text'
}
Parameters:
GstMse.MseSrc instance
the number of text tracks available from this source
Since : 1.24
GstMse.MseSrc.get_n_text
def GstMse.MseSrc.get_n_text (self):
#python wrapper for 'gst_mse_src_get_n_text'
Parameters:
GstMse.MseSrc instance
the number of text tracks available from this source
Since : 1.24
gst_mse_src_get_n_video
guint gst_mse_src_get_n_video (GstMseSrc * self)
Parameters:
self
–
GstMseSrc instance
the number of video tracks available from this source
Since : 1.24
GstMse.MseSrc.prototype.get_n_video
function GstMse.MseSrc.prototype.get_n_video(): {
// javascript wrapper for 'gst_mse_src_get_n_video'
}
Parameters:
GstMse.MseSrc instance
the number of video tracks available from this source
Since : 1.24
GstMse.MseSrc.get_n_video
def GstMse.MseSrc.get_n_video (self):
#python wrapper for 'gst_mse_src_get_n_video'
Parameters:
GstMse.MseSrc instance
the number of video tracks available from this source
Since : 1.24
gst_mse_src_get_position
GstClockTime gst_mse_src_get_position (GstMseSrc * self)
Gets the current playback position of self.
Parameters:
self
–
GstMseSrc instance
The playback position of this Element as a GstClockTime
Since : 1.24
GstMse.MseSrc.prototype.get_position
function GstMse.MseSrc.prototype.get_position(): {
// javascript wrapper for 'gst_mse_src_get_position'
}
Gets the current playback position of self.
Parameters:
GstMse.MseSrc instance
Since : 1.24
GstMse.MseSrc.get_position
def GstMse.MseSrc.get_position (self):
#python wrapper for 'gst_mse_src_get_position'
Gets the current playback position of self.
Parameters:
GstMse.MseSrc instance
Since : 1.24
gst_mse_src_get_ready_state
GstMseSrcReadyState gst_mse_src_get_ready_state (GstMseSrc * self)
The Ready State of self, describing to what level it can supply content for the current position. This is a separate concept from ready-state: and corresponds to the HTML Media Element's Ready State.
Parameters:
self
–
GstMseSrc instance
the current GstMseSrcReadyState
Since : 1.24
GstMse.MseSrc.prototype.get_ready_state
function GstMse.MseSrc.prototype.get_ready_state(): {
// javascript wrapper for 'gst_mse_src_get_ready_state'
}
The Ready State of self, describing to what level it can supply content for the current position. This is a separate concept from ready-state: and corresponds to the HTML Media Element's Ready State.
Parameters:
GstMse.MseSrc instance
the current GstMse.MseSrcReadyState
Since : 1.24
GstMse.MseSrc.get_ready_state
def GstMse.MseSrc.get_ready_state (self):
#python wrapper for 'gst_mse_src_get_ready_state'
The Ready State of self, describing to what level it can supply content for the current position. This is a separate concept from ready_state: and corresponds to the HTML Media Element's Ready State.
Parameters:
GstMse.MseSrc instance
the current GstMse.MseSrcReadyState
Since : 1.24
Properties
duration
“duration” guint64
The duration of the stream as a GstClockTime
Flags : Read / Write
Since : 1.24
n_audio
“self.props.n_audio” int
The number of audio tracks in the Media Source
Flags : Read
Since : 1.24
n_text
“self.props.n_text” int
The number of text tracks in the Media Source
Flags : Read
Since : 1.24
n_video
“self.props.n_video” int
The number of video tracks in the Media Source
Flags : Read
Since : 1.24
ready-state
“ready-state” GstMseSrcReadyState *
The Ready State of this element, describing to what level it can supply content for the current position. This is a separate concept from ready-state: and corresponds to the HTML Media Element's Ready State.
Flags : Read
Since : 1.24
ready-state
“ready-state” GstMse.MseSrcReadyState
The Ready State of this element, describing to what level it can supply content for the current position. This is a separate concept from ready-state: and corresponds to the HTML Media Element's Ready State.
Flags : Read
Since : 1.24
ready_state
“self.props.ready_state” GstMse.MseSrcReadyState
The Ready State of this element, describing to what level it can supply content for the current position. This is a separate concept from ready_state: and corresponds to the HTML Media Element's Ready State.
Flags : Read
Since : 1.24
GstMseSrcPad
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstPad ╰──GstMseSrcPad
Since : 1.24
Class structure
GstMse.MseSrcPad
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Pad ╰──GstMse.MseSrcPad
Since : 1.24
GstMse.MseSrcPad
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Pad ╰──GstMse.MseSrcPad
Since : 1.24
Enumerations
GstMseSrcReadyState
Describes how much information a GstMseSrc has about the media it is playing back at the current playback position. This type corresponds directly to the ready state of a HTML Media Element and is a separate concept from GstMediaSourceReadyState.
Members
GST_MSE_SRC_READY_STATE_HAVE_NOTHING
(0)
–
No information is available about the stream
GST_MSE_SRC_READY_STATE_HAVE_METADATA
(1)
–
The duration is available and video dimensions are available if the stream contains video
GST_MSE_SRC_READY_STATE_HAVE_CURRENT_DATA
(2)
–
The current playback position can be presented but future information is not available
GST_MSE_SRC_READY_STATE_HAVE_FUTURE_DATA
(3)
–
There is data for the current position and some amount in the future and any text tracks are ready.
GST_MSE_SRC_READY_STATE_HAVE_ENOUGH_DATA
(4)
–
Either there is enough data to play the stream through at the current playback and input rate or the input buffer is full.
Since : 1.24
GstMse.MseSrcReadyState
Describes how much information a GstMse.MseSrc has about the media it is playing back at the current playback position. This type corresponds directly to the ready state of a HTML Media Element and is a separate concept from GstMse.MediaSourceReadyState.
Members
GstMse.MseSrcReadyState.NOTHING
(0)
–
No information is available about the stream
GstMse.MseSrcReadyState.METADATA
(1)
–
The duration is available and video dimensions are available if the stream contains video
GstMse.MseSrcReadyState.CURRENT_DATA
(2)
–
The current playback position can be presented but future information is not available
GstMse.MseSrcReadyState.FUTURE_DATA
(3)
–
There is data for the current position and some amount in the future and any text tracks are ready.
GstMse.MseSrcReadyState.ENOUGH_DATA
(4)
–
Either there is enough data to play the stream through at the current playback and input rate or the input buffer is full.
Since : 1.24
GstMse.MseSrcReadyState
Describes how much information a GstMse.MseSrc has about the media it is playing back at the current playback position. This type corresponds directly to the ready state of a HTML Media Element and is a separate concept from GstMse.MediaSourceReadyState.
Members
GstMse.MseSrcReadyState.NOTHING
(0)
–
No information is available about the stream
GstMse.MseSrcReadyState.METADATA
(1)
–
The duration is available and video dimensions are available if the stream contains video
GstMse.MseSrcReadyState.CURRENT_DATA
(2)
–
The current playback position can be presented but future information is not available
GstMse.MseSrcReadyState.FUTURE_DATA
(3)
–
There is data for the current position and some amount in the future and any text tracks are ready.
GstMse.MseSrcReadyState.ENOUGH_DATA
(4)
–
Either there is enough data to play the stream through at the current playback and input rate or the input buffer is full.
Since : 1.24
The results of the search are