gstinsertbin
This element is a GstBin that has a single source and sink pad. It allows the user (the application) to easily add and remove filter-like element (that has a single source and sink pad), to the pipeline while it is running. It features a fully asynchronous API inspired by GLib's GAsyncResult based APIs.
Each operation (addition or removal) can take a callback, this callback is guaranteed to be called. Unlike GIO, there is no guarantee about where this callback will be called from, it could be called before the action returns or it could be called later from another thread. The signature of this callback GstInsertBinCallback.
Apart from the library API, since 1.24 insertbin can also be found in the registry:
GstElement *pipeline, *insertbin, *videoflip;
gst_init (NULL, NULL);
pipeline =
gst_parse_launch ("videotestsrc ! insertbin name=i ! autovideosink",
NULL);
...
insertbin = gst_bin_get_by_name (GST_BIN (pipeline), "i");
videoflip = gst_element_factory_make ("videoflip", NULL);
...
g_object_set (videoflip, "method", 1, NULL);
g_signal_emit_by_name (insertbin, "append", videoflip, NULL, NULL);
...
GstInsertBin
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBin ╰──GstInsertBin
The object structure.
Members
parent
(GstBin)
–
Since : 1.2
Class structure
GstInsertBinClass
The object class structure.
Fields
parent_class
(GstBinClass)
–
Since : 1.2
GstInsertBin.InsertBinClass
The object class structure.
Attributes
parent_class
(Gst.BinClass)
–
Since : 1.2
GstInsertBin.InsertBinClass
The object class structure.
Attributes
parent_class
(Gst.BinClass)
–
Since : 1.2
GstInsertBin.InsertBin
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──Gst.Bin ╰──GstInsertBin.InsertBin
The object structure.
Members
parent
(Gst.Bin)
–
Since : 1.2
GstInsertBin.InsertBin
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.Element ╰──Gst.Bin ╰──GstInsertBin.InsertBin
The object structure.
Members
parent
(Gst.Bin)
–
Since : 1.2
Constructors
gst_insert_bin_new
GstElement * gst_insert_bin_new (const gchar * name)
Creates a new GstInsertBin
Parameters:
name
(
[allow-none])
–
The name of the new GstInsertBin element (or NULL)
The new GstInsertBin
Since : 1.2
GstInsertBin.InsertBin.prototype.new
function GstInsertBin.InsertBin.prototype.new(name: String): {
// javascript wrapper for 'gst_insert_bin_new'
}
Creates a new GstInsertBin.InsertBin
Parameters:
The name of the new GstInsertBin.InsertBin element (or null)
The new GstInsertBin.InsertBin
Since : 1.2
GstInsertBin.InsertBin.new
def GstInsertBin.InsertBin.new (name):
#python wrapper for 'gst_insert_bin_new'
Creates a new GstInsertBin.InsertBin
Parameters:
The name of the new GstInsertBin.InsertBin element (or None)
The new GstInsertBin.InsertBin
Since : 1.2
Methods
gst_insert_bin_append
gst_insert_bin_append (GstInsertBin * self, GstElement * element, GstInsertBinCallback callback, gpointer user_data)
This action signal adds the filter like element after any other element in the bin.
Same as the append signal.
Parameters:
self
–
element
–
the GstElement to add
callback
(
[scope async])
–
the callback to call when the element has been added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.append
function GstInsertBin.InsertBin.prototype.append(element: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
// javascript wrapper for 'gst_insert_bin_append'
}
This action signal adds the filter like element after any other element in the bin.
Same as the append signal.
Parameters:
the Gst.Element to add
the callback to call when the element has been added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.append
def GstInsertBin.InsertBin.append (self, element, callback, *user_data):
#python wrapper for 'gst_insert_bin_append'
This action signal adds the filter like element after any other element in the bin.
Same as the append signal.
Parameters:
the Gst.Element to add
the callback to call when the element has been added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_insert_after
gst_insert_bin_insert_after (GstInsertBin * self, GstElement * element, GstElement * sibling, GstInsertBinCallback callback, gpointer user_data)
This action signal adds the filter like element after the sibling element in the bin.
Same as the insert-after signal.
Parameters:
self
–
element
–
the GstElement to add
sibling
–
the GstElement to add element after
callback
(
[scope async])
–
the callback to call when the element has been added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.insert_after
function GstInsertBin.InsertBin.prototype.insert_after(element: Gst.Element, sibling: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
// javascript wrapper for 'gst_insert_bin_insert_after'
}
This action signal adds the filter like element after the sibling element in the bin.
Same as the insert-after signal.
Parameters:
the Gst.Element to add
the Gst.Element to add element after
the callback to call when the element has been added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.insert_after
def GstInsertBin.InsertBin.insert_after (self, element, sibling, callback, *user_data):
#python wrapper for 'gst_insert_bin_insert_after'
This action signal adds the filter like element after the sibling element in the bin.
Same as the insert-after signal.
Parameters:
the Gst.Element to add
the Gst.Element to add element after
the callback to call when the element has been added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_insert_before
gst_insert_bin_insert_before (GstInsertBin * self, GstElement * element, GstElement * sibling, GstInsertBinCallback callback, gpointer user_data)
This action signal adds the filter like element before the sibling element in the bin.
Same as the insert-before signal.
Parameters:
self
–
element
–
the GstElement to add
sibling
–
the GstElement to add element before
callback
(
[scope async])
–
the callback to call when the element has been added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.insert_before
function GstInsertBin.InsertBin.prototype.insert_before(element: Gst.Element, sibling: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
// javascript wrapper for 'gst_insert_bin_insert_before'
}
This action signal adds the filter like element before the sibling element in the bin.
Same as the insert-before signal.
Parameters:
the Gst.Element to add
the Gst.Element to add element before
the callback to call when the element has been added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.insert_before
def GstInsertBin.InsertBin.insert_before (self, element, sibling, callback, *user_data):
#python wrapper for 'gst_insert_bin_insert_before'
This action signal adds the filter like element before the sibling element in the bin.
Same as the insert-before signal.
Parameters:
the Gst.Element to add
the Gst.Element to add element before
the callback to call when the element has been added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_prepend
gst_insert_bin_prepend (GstInsertBin * self, GstElement * element, GstInsertBinCallback callback, gpointer user_data)
This action signal adds the filter like element before any other element in the bin.
Same as the prepend signal.
Parameters:
self
–
element
–
the GstElement to add
callback
(
[scope async])
–
the callback to call when the element has been added or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.prepend
function GstInsertBin.InsertBin.prototype.prepend(element: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
// javascript wrapper for 'gst_insert_bin_prepend'
}
This action signal adds the filter like element before any other element in the bin.
Same as the prepend signal.
Parameters:
the Gst.Element to add
the callback to call when the element has been added or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prepend
def GstInsertBin.InsertBin.prepend (self, element, callback, *user_data):
#python wrapper for 'gst_insert_bin_prepend'
This action signal adds the filter like element before any other element in the bin.
Same as the prepend signal.
Parameters:
the Gst.Element to add
the callback to call when the element has been added or not, or None
The data to pass to the callback
Since : 1.2
gst_insert_bin_remove
gst_insert_bin_remove (GstInsertBin * self, GstElement * element, GstInsertBinCallback callback, gpointer user_data)
This action signal removed the filter like element from the bin.
Same as the remove signal.
Parameters:
self
–
element
–
the GstElement to remove
callback
(
[scope async])
–
the callback to call when the element has been removed or not, or NULL
user_data
–
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.prototype.remove
function GstInsertBin.InsertBin.prototype.remove(element: Gst.Element, callback: GstInsertBin.InsertBinCallback, user_data: Object): {
// javascript wrapper for 'gst_insert_bin_remove'
}
This action signal removed the filter like element from the bin.
Same as the remove signal.
Parameters:
the Gst.Element to remove
the callback to call when the element has been removed or not, or null
The data to pass to the callback
Since : 1.2
GstInsertBin.InsertBin.remove
def GstInsertBin.InsertBin.remove (self, element, callback, *user_data):
#python wrapper for 'gst_insert_bin_remove'
This action signal removed the filter like element from the bin.
Same as the remove signal.
Parameters:
the Gst.Element to remove
the callback to call when the element has been removed or not, or None
The data to pass to the callback
Since : 1.2
Action Signals
append
g_signal_emit_by_name (self, "append", callback, user_data, user_data2, user_data);
This action signal adds the filter like element after any other element in the bin.
Same as gst_insert_bin_append
Parameters:
the callback to call when the element has been added or not, or NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
append
let ret = self.emit ("append", callback, user_data, user_data2, user_data);
This action signal adds the filter like element after any other element in the bin.
Same as GstInsertBin.InsertBin.prototype.append
Parameters:
the callback to call when the element has been added or not, or null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
append
ret = self.emit ("append", callback, user_data, user_data2, user_data)
This action signal adds the filter like element after any other element in the bin.
Same as GstInsertBin.InsertBin.append
Parameters:
the callback to call when the element has been added or not, or None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
insert-after
g_signal_emit_by_name (self, "insert-after", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element after the sibling element in the bin. element in the bin.
Same as gst_insert_bin_insert_after
Parameters:
the GstElement to add element after
the callback to call when the element has been added or not, or NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
insert-after
let ret = self.emit ("insert-after", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element after the sibling element in the bin. element in the bin.
Same as GstInsertBin.InsertBin.prototype.insert_after
Parameters:
the Gst.Element to add element after
the callback to call when the element has been added or not, or null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
insert-after
ret = self.emit ("insert-after", sibling, callback, user_data, user_data2, user_data)
This action signal adds the filter like element after the sibling element in the bin. element in the bin.
Same as GstInsertBin.InsertBin.insert_after
Parameters:
the Gst.Element to add element after
the callback to call when the element has been added or not, or None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
insert-before
g_signal_emit_by_name (self, "insert-before", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element before the sibling element in the bin.
Same as gst_insert_bin_insert_before
Parameters:
the GstElement to add element before
the callback to call when the element has been added or not, or NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
insert-before
let ret = self.emit ("insert-before", sibling, callback, user_data, user_data2, user_data);
This action signal adds the filter like element before the sibling element in the bin.
Same as GstInsertBin.InsertBin.prototype.insert_before
Parameters:
the Gst.Element to add element before
the callback to call when the element has been added or not, or null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
insert-before
ret = self.emit ("insert-before", sibling, callback, user_data, user_data2, user_data)
This action signal adds the filter like element before the sibling element in the bin.
Same as GstInsertBin.InsertBin.insert_before
Parameters:
the Gst.Element to add element before
the callback to call when the element has been added or not, or None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
prepend
g_signal_emit_by_name (self, "prepend", callback, user_data, user_data2, user_data);
This action signal adds the filter like element before any other element in the bin.
Same as gst_insert_bin_prepend
Parameters:
the callback to call when the element has been added or not, or NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
prepend
let ret = self.emit ("prepend", callback, user_data, user_data2, user_data);
This action signal adds the filter like element before any other element in the bin.
Same as GstInsertBin.InsertBin.prototype.prepend
Parameters:
the callback to call when the element has been added or not, or null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
prepend
ret = self.emit ("prepend", callback, user_data, user_data2, user_data)
This action signal adds the filter like element before any other element in the bin.
Same as GstInsertBin.InsertBin.prepend
Parameters:
the callback to call when the element has been added or not, or None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
remove
g_signal_emit_by_name (self, "remove", callback, user_data, user_data2, user_data);
This action signal removed the filter like element from the bin.
Same as gst_insert_bin_remove
Parameters:
the callback to call when the element has been removed or not, or NULL
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
remove
let ret = self.emit ("remove", callback, user_data, user_data2, user_data);
This action signal removed the filter like element from the bin.
Same as GstInsertBin.InsertBin.prototype.remove
Parameters:
the callback to call when the element has been removed or not, or null
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
remove
ret = self.emit ("remove", callback, user_data, user_data2, user_data)
This action signal removed the filter like element from the bin.
Same as GstInsertBin.InsertBin.remove
Parameters:
the callback to call when the element has been removed or not, or None
The data to pass to the callback
The user data of the signal (ignored)
The data to pass to the callback
Since : 1.2
Constants
GST_INSERT_BIN_API
#define GST_INSERT_BIN_API GST_API_EXPORT /* from config.h */
Callbacks
GstInsertBinCallback
(*GstInsertBinCallback) (GstInsertBin * insertbin, GstElement * element, gboolean success, gpointer user_data)
This is the prototype of callbacks to be called when the operation completes. It could be called at any time, including as a re-entrant call while the operation is requested.
Parameters:
insertbin
–
element
–
The GstElement on which the operation was performed
success
–
TRUE if the operation was successful
user_data
–
The user data passed
Since : 1.2
GstInsertBin.InsertBinCallback
function GstInsertBin.InsertBinCallback(insertbin: GstInsertBin.InsertBin, element: Gst.Element, success: Number, user_data: Object): {
// javascript wrapper for 'GstInsertBinCallback'
}
This is the prototype of callbacks to be called when the operation completes. It could be called at any time, including as a re-entrant call while the operation is requested.
Since : 1.2
GstInsertBin.InsertBinCallback
def GstInsertBin.InsertBinCallback (insertbin, element, success, *user_data):
#python wrapper for 'GstInsertBinCallback'
This is the prototype of callbacks to be called when the operation completes. It could be called at any time, including as a re-entrant call while the operation is requested.
Since : 1.2
The results of the search are