Class VideoSink.Builder<B extends VideoSink.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.base.BaseSink.Builder<B>
org.freedesktop.gstreamer.video.VideoSink.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
VideoSink
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theVideoSinkobject.setShowPrerollFrame(boolean showPrerollFrame) Whether to show video frames during preroll.Methods inherited from class BaseSink.Builder
setAsync, setBlocksize, setEnableLastSample, setMaxBitrate, setMaxLateness, setProcessingDeadline, setQos, setRenderDelay, setSync, setThrottleTime, setTsOffsetMethods inherited from class Element.Builder
onNoMorePads, onPadAdded, onPadRemovedMethods inherited from class GstObject.Builder
onDeepNotify, setName, setParentMethods inherited from class GObject.Builder
onNotifyMethods inherited from class Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theVideoSinkobject. This will callGObject.withProperties(Type, String[], Value[])to create a new GObject instance, which is then cast toVideoSink.- Overrides:
buildin classBaseSink.Builder<B extends VideoSink.Builder<B>>- Returns:
- a new instance of
VideoSinkwith the properties that were set in the Builder object.
-
setShowPrerollFrame
Whether to show video frames during preroll. If set tofalse, video frames will only be rendered in PLAYING state.- Parameters:
showPrerollFrame- the value for theshow-preroll-frameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-