Package org.freedesktop.gstreamer.gst
Class Pipeline.Builder<B extends Pipeline.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>
org.freedesktop.gstreamer.gst.Bin.Builder<B>
org.freedesktop.gstreamer.gst.Pipeline.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Pipeline
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building thePipeline
object.setAutoFlushBus
(boolean autoFlushBus) Whether or not to automatically flush all messages on the pipeline's bus when going from READY to NULL state.setDelay
(long delay) The expected delay needed for elements to spin up to the PLAYING state expressed in nanoseconds.setLatency
(long latency) Latency to configure on the pipeline.Methods inherited from class org.freedesktop.gstreamer.gst.Bin.Builder
onDeepElementAdded, onDeepElementRemoved, onDoLatency, onElementAdded, onElementRemoved, setAsyncHandling, setMessageForward
Methods inherited from class org.freedesktop.gstreamer.gst.Element.Builder
onNoMorePads, onPadAdded, onPadRemoved
Methods 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 thePipeline
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 toPipeline
.- Overrides:
build
in classBin.Builder<B extends Pipeline.Builder<B>>
- Returns:
- a new instance of
Pipeline
with the properties that were set in the Builder object.
-
setAutoFlushBus
Whether or not to automatically flush all messages on the pipeline's bus when going from READY to NULL state. Please see gst_pipeline_set_auto_flush_bus() for more information on this option.- Parameters:
autoFlushBus
- the value for theauto-flush-bus
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDelay
The expected delay needed for elements to spin up to the PLAYING state expressed in nanoseconds. see gst_pipeline_set_delay() for more information on this option.- Parameters:
delay
- the value for thedelay
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setLatency
Latency to configure on the pipeline. See gst_pipeline_set_latency().- Parameters:
latency
- the value for thelatency
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-