GstInsertBin.InsertBin

g GObject.GInterface GObject.GInterface Gst.ChildProxy Gst.ChildProxy GObject.GInterface->Gst.ChildProxy GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Bin Gst.Bin GstInsertBin.InsertBin GstInsertBin.InsertBin Gst.Bin->GstInsertBin.InsertBin Gst.ChildProxy->Gst.Bin Gst.Element Gst.Element Gst.Element->Gst.Bin Gst.Object->Gst.Element

Subclasses:

None

Methods

Inherited:

Gst.Bin (18), Gst.Element (82), Gst.Object (27), GObject.Object (37), Gst.ChildProxy (9)

Structs:

Gst.ElementClass (10), GObject.ObjectClass (5)

class

new (name)

append (element, callback, *user_data)

insert_after (element, sibling, callback, *user_data)

insert_before (element, sibling, callback, *user_data)

prepend (element, callback, *user_data)

remove (element, callback, *user_data)

Virtual Methods

Inherited:

Gst.Bin (8), Gst.Element (16), Gst.Object (1), GObject.Object (7), Gst.ChildProxy (5)

Properties

Inherited:

Gst.Bin (2), Gst.Object (2)

Signals

Inherited:

Gst.Bin (5), Gst.Element (3), Gst.Object (1), GObject.Object (1), Gst.ChildProxy (2)

Name

Short Description

append

This action signal adds the filter like element after any other element in the bin.

insert-after

This action signal adds the filter like element after the sibling element in the bin.

insert-before

This action signal adds the filter like element before the sibling element in the bin.

prepend

This action signal adds the filter like element before any other element in the bin.

remove

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

Gst.Bin

r

Class Details

class GstInsertBin.InsertBin(**kwargs)
Bases:

Gst.Bin

Abstract:

No

Structure:

GstInsertBin.InsertBinClass

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 or None) – The name of the new GstInsertBin.InsertBin element (or None)

Returns:

The new GstInsertBin.InsertBin

Return type:

Gst.Element

Creates a new GstInsertBin.InsertBin

New in version 1.2.

append(element, callback, *user_data)[source]
Parameters:

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:

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:

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:

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:

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:

RUN_LAST, ACTION

Parameters:
  • insert_bin (GstInsertBin.InsertBin) – The object which received the signal

  • callback (Gst.Element) – the callback to call when the element has been added or not, or None

  • user_data (object or None) – The data to pass to the callback

  • user_data2 (object or None) – 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:

RUN_LAST, ACTION

Parameters:

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:

RUN_LAST, ACTION

Parameters:

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:

RUN_LAST, ACTION

Parameters:
  • insert_bin (GstInsertBin.InsertBin) – The object which received the signal

  • callback (Gst.Element) – the callback to call when the element has been added or not, or None

  • user_data (object or None) – The data to pass to the callback

  • user_data2 (object or None) – 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:

RUN_LAST, ACTION

Parameters:
  • insert_bin (GstInsertBin.InsertBin) – The object which received the signal

  • callback (Gst.Element) – the callback to call when the element has been removed or not, or None

  • user_data (object or None) – The data to pass to the callback

  • user_data2 (object or None) – 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.