Package org.freedesktop.gstreamer.gst
Class Pipeline.Builder<B extends Pipeline.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>
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePipelineobject.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, setMessageForwardMethods inherited from class org.freedesktop.gstreamer.gst.Element.Builder
onNoMorePads, onPadAdded, onPadRemovedMethods 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 thePipelineobject. 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:
buildin classBin.Builder<B extends Pipeline.Builder<B>>- Returns:
- a new instance of
Pipelinewith 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-busproperty- Returns:
- the
Builderinstance 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 thedelayproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setLatency
Latency to configure on the pipeline. See gst_pipeline_set_latency().- Parameters:
latency- the value for thelatencyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.6
-