GstInsertBin.InsertBin¶
- Subclasses:
None
Methods¶
- Inherited:
Gst.Bin (18), Gst.Element (82), Gst.Object (27), GObject.Object (37), Gst.ChildProxy (9)
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
- Inherited:
Gst.Bin (5), Gst.Element (3), Gst.Object (1), GObject.Object (1), Gst.ChildProxy (2)
Name |
Short Description |
---|---|
This action signal adds the filter like element after any other element in the bin. |
|
This action signal adds the filter like element after the sibling element in the bin. |
|
This action signal adds the filter like element before the sibling element in the bin. |
|
This action signal adds the filter like element before any other element in the bin. |
|
This action signal removed the filter like element from the bin. |
Fields¶
- Inherited:
Gst.Bin (5), Gst.Element (3), Gst.Object (1), GObject.Object (1), Gst.ChildProxy (2)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GstInsertBin.InsertBin(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This element is a
Gst.Bin
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
GstInsertBin.InsertBinCallback
().Apart from the library API, since 1.24 insertbin can also be found in the registry:
``` C
Gst.Element
*pipeline, *insertbin, *videoflip;Gst.init
(None
,None
); pipeline =Gst.parse_launch
(“videotestsrc ! insertbin name=i ! autovideosink”,None
);…
insertbin =
Gst.Bin.get_by_name
(GST_BIN (pipeline), “i”); videoflip =Gst.ElementFactory.make
(“videoflip”,None
);…
g_object_set (videoflip, “method”, 1,
None
); g_signal_emit_by_name (insertbin, “append”, videoflip,None
,None
);… ```
New in version 1.2.
- classmethod new(name)[source]¶
- Parameters:
name (
str
orNone
) – The name of the newGstInsertBin.InsertBin
element (orNone
)- Returns:
The new
GstInsertBin.InsertBin
- Return type:
Creates a new
GstInsertBin.InsertBin
New in version 1.2.
- append(element, callback, *user_data)[source]¶
- Parameters:
element (
Gst.Element
) – theGst.Element
to addcallback (
GstInsertBin.InsertBinCallback
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callback
This action signal adds the filter like element after any other element in the bin.
Same as the
GstInsertBin.InsertBin
::append
signal.New in version 1.2.
- insert_after(element, sibling, callback, *user_data)[source]¶
- Parameters:
element (
Gst.Element
) – theGst.Element
to addsibling (
Gst.Element
) – theGst.Element
to add element aftercallback (
GstInsertBin.InsertBinCallback
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callback
This action signal adds the filter like element after the sibling element in the bin.
Same as the
GstInsertBin.InsertBin
::insert-after
signal.New in version 1.2.
- insert_before(element, sibling, callback, *user_data)[source]¶
- Parameters:
element (
Gst.Element
) – theGst.Element
to addsibling (
Gst.Element
) – theGst.Element
to add element beforecallback (
GstInsertBin.InsertBinCallback
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callback
This action signal adds the filter like element before the sibling element in the bin.
Same as the
GstInsertBin.InsertBin
::insert-before
signal.New in version 1.2.
- prepend(element, callback, *user_data)[source]¶
- Parameters:
element (
Gst.Element
) – theGst.Element
to addcallback (
GstInsertBin.InsertBinCallback
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callback
This action signal adds the filter like element before any other element in the bin.
Same as the
GstInsertBin.InsertBin
::prepend
signal.New in version 1.2.
- remove(element, callback, *user_data)[source]¶
- Parameters:
element (
Gst.Element
) – theGst.Element
to removecallback (
GstInsertBin.InsertBinCallback
) – the callback to call when the element has been removed or not, orNone
user_data (
object
orNone
) – The data to pass to the callback
This action signal removed the filter like element from the bin.
Same as the
GstInsertBin.InsertBin
::remove
signal.New in version 1.2.
Signal Details¶
- GstInsertBin.InsertBin.signals.append(insert_bin, callback, user_data, user_data2)¶
- Signal Name:
append
- Flags:
- Parameters:
insert_bin (
GstInsertBin.InsertBin
) – The object which received the signalcallback (
Gst.Element
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callbackuser_data2 (
object
orNone
) – The user data of the signal (ignored)
This action signal adds the filter like element after any other element in the bin.
Same as
GstInsertBin.InsertBin.append
()New in version 1.2.
- GstInsertBin.InsertBin.signals.insert_after(insert_bin, sibling, callback, user_data, user_data2)¶
- Signal Name:
insert-after
- Flags:
- Parameters:
insert_bin (
GstInsertBin.InsertBin
) – The object which received the signalsibling (
Gst.Element
) – theGst.Element
to add element aftercallback (
Gst.Element
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callbackuser_data2 (
object
orNone
) – The user data of the signal (ignored)
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
()New in version 1.2.
- GstInsertBin.InsertBin.signals.insert_before(insert_bin, sibling, callback, user_data, user_data2)¶
- Signal Name:
insert-before
- Flags:
- Parameters:
insert_bin (
GstInsertBin.InsertBin
) – The object which received the signalsibling (
Gst.Element
) – theGst.Element
to add element beforecallback (
Gst.Element
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callbackuser_data2 (
object
orNone
) – The user data of the signal (ignored)
This action signal adds the filter like element before the sibling element in the bin.
Same as
GstInsertBin.InsertBin.insert_before
()New in version 1.2.
- GstInsertBin.InsertBin.signals.prepend(insert_bin, callback, user_data, user_data2)¶
- Signal Name:
prepend
- Flags:
- Parameters:
insert_bin (
GstInsertBin.InsertBin
) – The object which received the signalcallback (
Gst.Element
) – the callback to call when the element has been added or not, orNone
user_data (
object
orNone
) – The data to pass to the callbackuser_data2 (
object
orNone
) – The user data of the signal (ignored)
This action signal adds the filter like element before any other element in the bin.
Same as
GstInsertBin.InsertBin.prepend
()New in version 1.2.
- GstInsertBin.InsertBin.signals.remove(insert_bin, callback, user_data, user_data2)¶
- Signal Name:
remove
- Flags:
- Parameters:
insert_bin (
GstInsertBin.InsertBin
) – The object which received the signalcallback (
Gst.Element
) – the callback to call when the element has been removed or not, orNone
user_data (
object
orNone
) – The data to pass to the callbackuser_data2 (
object
orNone
) – The user data of the signal (ignored)
This action signal removed the filter like element from the bin.
Same as
GstInsertBin.InsertBin.remove
()New in version 1.2.