Class VideoSink.Builder<B extends VideoSink.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
VideoSink

public static class VideoSink.Builder<B extends VideoSink.Builder<B>> extends BaseSink.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public VideoSink build()
      Finish building the VideoSink object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to VideoSink.
      Overrides:
      build in class BaseSink.Builder<B extends VideoSink.Builder<B>>
      Returns:
      a new instance of VideoSink with the properties that were set in the Builder object.
    • setShowPrerollFrame

      public B setShowPrerollFrame(boolean showPrerollFrame)
      Whether to show video frames during preroll. If set to false, video frames will only be rendered in PLAYING state.
      Parameters:
      showPrerollFrame - the value for the show-preroll-frame property
      Returns:
      the Builder instance is returned, to allow method chaining