![]() |
![]() |
![]() |
GStreamer Base Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
"uri" gchar* : Read / Write "connection-speed" guint : Read / Write "caps" GstCaps* : Read / Write "subtitle-encoding" gchar* : Read / Write "source" GstElement* : Read "buffer-duration" gint64 : Read / Write "buffer-size" gint : Read / Write "download" gboolean : Read / Write "use-buffering" gboolean : Read / Write "expose-all-streams" gboolean : Read / Write "ring-buffer-max-size" guint64 : Read / Write
"autoplug-continue" :Run Last
"autoplug-factories" :Run Last
"autoplug-select" :Run Last
"unknown-type" :Run Last
"drained" :Run Last
"autoplug-sort" :Run Last
"source-setup" :Run Last
Decodes data from a URI into raw media. It selects a source element that can handle the given "uri" scheme and connects it to a decodebin2.
plugin |
uridecodebin |
author |
Wim Taymans <wim.taymans@gmail.com> |
class |
Generic/Bin/Decoder |
"connection-speed"
property"connection-speed" guint : Read / Write
Network connection speed in kbps (0 = unknown).
Allowed values: <= 4294967
Default value: 0
"caps"
property"caps" GstCaps* : Read / Write
The caps on which to stop decoding. (NULL = default).
"subtitle-encoding"
property"subtitle-encoding" gchar* : Read / Write
Encoding to assume if input subtitles are not in UTF-8 encoding. If not set, the GST_SUBTITLE_ENCODING environment variable will be checked for an encoding to use. If that is not set either, ISO-8859-15 will be assumed.
Default value: NULL
"buffer-duration"
property"buffer-duration" gint64 : Read / Write
Buffer duration when buffering streams (-1 default value).
Allowed values: >= G_MAXULONG
Default value: -1
"buffer-size"
property"buffer-size" gint : Read / Write
Buffer size when buffering streams (-1 default value).
Allowed values: >= G_MAXULONG
Default value: -1
"download"
property"download" gboolean : Read / Write
Attempt download buffering when buffering network streams.
Default value: FALSE
"use-buffering"
property"use-buffering" gboolean : Read / Write
Perform buffering on demuxed/parsed media.
Default value: FALSE
"expose-all-streams"
property"expose-all-streams" gboolean : Read / Write
Expose all streams, including those of unknown type or that don't match the 'caps' property.
Default value: TRUE
"ring-buffer-max-size"
property"ring-buffer-max-size" guint64 : Read / Write
Max. amount of data in the ring buffer (bytes, 0 = ring buffer disabled).
Allowed values: <= G_MAXUINT
Default value: 0
"autoplug-continue"
signalgboolean user_function (GstURIDecodeBin *bin,
GstPad *pad,
GstCaps *caps,
gpointer user_data) : Run Last
This signal is emitted whenever uridecodebin finds a new stream. It is emitted before looking for any elements that can handle that stream.
|
The uridecodebin. |
|
The GstPad. |
|
The GstCaps found. |
|
user data set when the signal handler was connected. |
Returns : |
TRUE if you wish uridecodebin to look for elements that can
handle the given caps . If FALSE, those caps will be considered as
final and the pad will be exposed as such (see 'new-decoded-pad'
signal). |
"autoplug-factories"
signalGValueArray* user_function (GstURIDecodeBin *bin,
GstPad *pad,
GstCaps *caps,
gpointer user_data) : Run Last
This function is emited when an array of possible factories for caps
on
pad
is needed. Uridecodebin will by default return an array with all
compatible factories, sorted by rank.
If this function returns NULL, pad
will be exposed as a final caps.
If this function returns an empty array, the pad will be considered as having an unhandled type media type.
|
The uridecodebin. |
|
The GstPad. |
|
The GstCaps found. |
|
user data set when the signal handler was connected. |
Returns : |
a GValueArray* with a list of factories to try. The factories are by default tried in the returned order or based on the index returned by "autoplug-select". |
"autoplug-select"
signalGstAutoplugSelectResultuser_function (GstURIDecodeBin *bin,
GstPad *pad,
GstCaps *caps,
GstElementFactory *factory,
gpointer user_data) : Run Last
This signal is emitted once uridecodebin has found all the possible
GstElementFactory that can be used to handle the given caps
. For each of
those factories, this signal is emited.
The signal handler should return a GST_TYPE_AUTOPLUG_SELECT_RESULT enum value indicating what decodebin2 should do next.
A value of GST_AUTOPLUG_SELECT_TRY will try to autoplug an element from
factory
.
A value of GST_AUTOPLUG_SELECT_EXPOSE will expose pad
without plugging
any element to it.
A value of GST_AUTOPLUG_SELECT_SKIP will skip factory
and move to the
next factory.
|
The uridecodebin. |
|
The GstPad. |
|
The GstCaps. |
|
A GstElementFactory to use. |
|
user data set when the signal handler was connected. |
Returns : |
a GST_TYPE_AUTOPLUG_SELECT_RESULT that indicates the required operation. The default handler will always return GST_AUTOPLUG_SELECT_TRY. |
"unknown-type"
signalvoid user_function (GstURIDecodeBin *bin,
GstPad *pad,
GstCaps *caps,
gpointer user_data) : Run Last
This signal is emitted when a pad for which there is no further possible decoding is added to the uridecodebin.
|
The uridecodebin. |
|
the new pad containing caps that cannot be resolved to a 'final'. stream type. |
|
the GstCaps of the pad that cannot be resolved. |
|
user data set when the signal handler was connected. |
"drained"
signalvoid user_function (GstURIDecodeBin *arg0,
gpointer user_data) : Run Last
This signal is emitted when the data for the current uri is played.
|
user data set when the signal handler was connected. |
"autoplug-sort"
signalGValueArray* user_function (GstURIDecodeBin *bin,
GstPad *pad,
GstCaps *caps,
GValueArray *factories,
gpointer user_data) : Run Last
Once decodebin2 has found the possible GstElementFactory objects to try
for caps
on pad
, this signal is emited. The purpose of the signal is for
the application to perform additional sorting or filtering on the element
factory array.
The callee should copy and modify factories
or return NULL if the
order should not change.
|
The uridecodebin. |
|
The GstPad. |
|
The GstCaps. |
|
A GValueArray of possible GstElementFactory to use. |
|
user data set when the signal handler was connected. |
Returns : |
A new sorted array of GstElementFactory objects. |
Since 0.10.33
"source-setup"
signalvoid user_function (GstURIDecodeBin *bin,
GstElement *source,
gpointer user_data) : Run Last
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.
|
the uridecodebin. |
|
source element |
|
user data set when the signal handler was connected. |
Since 0.10.33