Package org.freedesktop.gstreamer.gst
Class Element.Builder<B extends Element.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.freedesktop.gstreamer.gst.GstObject.Builder<B>
org.freedesktop.gstreamer.gst.Element.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
Aggregator.Builder,AudioDecoder.Builder,AudioEncoder.Builder,AudioVisualizer.Builder,BaseParse.Builder,BaseSink.Builder,BaseSrc.Builder,BaseTransform.Builder,Bin.Builder,VideoDecoder.Builder,VideoEncoder.Builder
- Enclosing class:
Element
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theElementobject.onNoMorePads(Element.NoMorePadsCallback handler) This signals that the element will not generate more dynamic pads.onPadAdded(Element.PadAddedCallback handler) a newGstPadhas been added to the element.onPadRemoved(Element.PadRemovedCallback handler) aGstPadhas been removed from the elementMethods inherited from class org.freedesktop.gstreamer.gst.GstObject.Builder
onDeepNotify, setName, setParentMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theElementobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toElement.- Overrides:
buildin classGstObject.Builder<B extends Element.Builder<B>>- Returns:
- a new instance of
Elementwith the properties that were set in the Builder object.
-
onNoMorePads
This signals that the element will not generate more dynamic pads. Note that this signal will usually be emitted from the context of the streaming thread.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onPadAdded
a newGstPadhas been added to the element. Note that this signal will usually be emitted from the context of the streaming thread. Also keep in mind that if you add new elements to the pipeline in the signal handler you will need to set them to the desired target state with gst_element_set_state() or gst_element_sync_state_with_parent().- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onPadRemoved
aGstPadhas been removed from the element- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-