Package org.freedesktop.gstreamer.gst
Class Element.Builder<B extends Element.Builder<B>>
java.lang.Object
io.github.jwharm.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
,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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theElement
object.onNoMorePads
(Element.NoMorePadsCallback handler) This signals that the element will not generate more dynamic pads.onPadAdded
(Element.PadAddedCallback handler) a newGstPad
has been added to the element.onPadRemoved
(Element.PadRemovedCallback handler) aGstPad
has been removed from the elementMethods inherited from class org.freedesktop.gstreamer.gst.GstObject.Builder
onDeepNotify, setName, setParent
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theElement
object. 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:
build
in classGstObject.Builder<B extends Element.Builder<B>>
- Returns:
- a new instance of
Element
with 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
Builder
instance is returned, to allow method chaining - See Also:
-
onPadAdded
a newGstPad
has 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
Builder
instance is returned, to allow method chaining - See Also:
-
onPadRemoved
aGstPad
has been removed from the element- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-