urisourcebin
urisourcebin is an element for accessing URIs in a uniform manner.
It handles selecting a URI source element and potentially download buffering for network sources. It produces one or more source pads, depending on the input source, for feeding to decoding chains or decodebin.
The main configuration is via the uri property.
urisourcebin is still experimental API and a technology preview. Its behaviour and exposed API is subject to change.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBin ╰──urisourcebin
Factory details
Authors: – Jan Schmidt
Classification: – Generic/Bin/Source
Rank – none
Plugin – gstplayback
Package – GStreamer Base Plug-ins
Pad Templates
Signals
about-to-finish
about_to_finish_callback (GstElement * param_0, gpointer udata)
def about_to_finish_callback (param_0, udata):
#python callback for the 'about-to-finish' signal
function about_to_finish_callback(param_0: GstElement * param_0, udata: gpointer udata): {
// javascript callback for the 'about-to-finish' signal
}
This signal is emitted when the data for the current uri is played.
Parameters:
param_0
–
udata
–
Flags: Run Last
drained
drained_callback (GstElement * param_0, gpointer udata)
def drained_callback (param_0, udata):
#python callback for the 'drained' signal
function drained_callback(param_0: GstElement * param_0, udata: gpointer udata): {
// javascript callback for the 'drained' signal
}
This signal is emitted when the data for the current uri is played.
Parameters:
param_0
–
udata
–
Flags: Run Last
no-more-pads
no_more_pads_callback (GstElement * param_0, gpointer udata)
def no_more_pads_callback (param_0, udata):
#python callback for the 'no-more-pads' signal
function no_more_pads_callback(param_0: GstElement * param_0, udata: gpointer udata): {
// javascript callback for the 'no-more-pads' signal
}
Parameters:
param_0
–
udata
–
Flags: Run Last
pad-added
pad_added_callback (GstElement * param_0, GstPad * arg0, gpointer udata)
def pad_added_callback (param_0, arg0, udata):
#python callback for the 'pad-added' signal
function pad_added_callback(param_0: GstElement * param_0, arg0: GstPad * arg0, udata: gpointer udata): {
// javascript callback for the 'pad-added' signal
}
Parameters:
param_0
–
arg0
–
udata
–
Flags: Run Last
pad-removed
pad_removed_callback (GstElement * param_0, GstPad * arg0, gpointer udata)
def pad_removed_callback (param_0, arg0, udata):
#python callback for the 'pad-removed' signal
function pad_removed_callback(param_0: GstElement * param_0, arg0: GstPad * arg0, udata: gpointer udata): {
// javascript callback for the 'pad-removed' signal
}
Parameters:
param_0
–
arg0
–
udata
–
Flags: Run Last
source-setup
source_setup_callback (GstElement * bin, GstElement * source, gpointer udata)
def source_setup_callback (bin, source, udata):
#python callback for the 'source-setup' signal
function source_setup_callback(bin: GstElement * bin, source: GstElement * source, udata: gpointer udata): {
// javascript callback for the 'source-setup' signal
}
This signal is emitted after the source element has been created, so it can be configured by setting additional properties (e.g. set a proxy server for an http source, or set the device and read speed for an audio cd source). This is functionally equivalent to connecting to the notify::source signal, but more convenient.
Parameters:
bin
–
the urisourcebin.
source
–
source element
udata
–
Flags: Run Last
Since : 1.6.1
Properties
async-handling
“async-handling” gboolean
The bin will handle Asynchronous state changes
Flags : Read / Write
Default value : false
buffer-duration
“buffer-duration” gint64
Buffer duration when buffering streams (-1 default value)
Flags : Read / Write
Default value : 18446744073709551615
buffer-size
“buffer-size” gint
Buffer size when buffering streams (-1 default value)
Flags : Read / Write
Default value : -1
connection-speed
“connection-speed” guint64
Network connection speed in kbps (0 = unknown)
Flags : Read / Write
Default value : 0
download
“download” gboolean
Attempt download buffering when buffering network streams
Flags : Read / Write
Default value : false
high-watermark
“high-watermark” gdouble
High threshold for buffering to finish. Only used if use-buffering is True
Flags : Read / Write
Default value : 0.99
low-watermark
“low-watermark” gdouble
Low threshold for buffering to start. Only used if use-buffering is True
Flags : Read / Write
Default value : 0.01
message-forward
“message-forward” gboolean
Forwards all children messages
Flags : Read / Write
Default value : false
ring-buffer-max-size
“ring-buffer-max-size” guint64
Max. amount of data in the ring buffer (bytes, 0 = ring buffer disabled)
Flags : Read / Write
Default value : 0
statistics
“statistics” GstStructure *
A set of statistics over all the queue-like elements contained in this element
Flags : Read
Default value :
application/x-urisourcebin-stats, minimum-byte-level=(uint)0, maximum-byte-level=(uint)0, average-byte-level=(uint)0, minimum-time-level=(guint64)0, maximum-time-level=(guint64)0, average-time-level=(guint64)0;
use-buffering
“use-buffering” gboolean
Perform buffering on demuxed/parsed media
Flags : Read / Write
Default value : true
The results of the search are