Class Pipeline.Builder<B extends Pipeline.Builder<B>>

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

public static class Pipeline.Builder<B extends Pipeline.Builder<B>> extends Bin.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 Pipeline build()
      Finish building the Pipeline object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to Pipeline.
      Overrides:
      build in class Bin.Builder<B extends Pipeline.Builder<B>>
      Returns:
      a new instance of Pipeline with the properties that were set in the Builder object.
    • setAutoFlushBus

      public B setAutoFlushBus(boolean autoFlushBus)
      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 the auto-flush-bus property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDelay

      public B setDelay(long delay)
      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 the delay property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setLatency

      public B setLatency(long latency)
      Latency to configure on the pipeline. See gst_pipeline_set_latency().
      Parameters:
      latency - the value for the latency property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.6