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 (81), 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().

New in version 1.2.

classmethod new(name)
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)
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)
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)
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)
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)
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()

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()

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()

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()

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()