Class VideoAggregator.Builder<B extends VideoAggregator.Builder<B>>

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

public static class VideoAggregator.Builder<B extends VideoAggregator.Builder<B>> extends Aggregator.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
1.16
  • Constructor Details

    • Builder

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

    • build

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

      public B setForceLive(boolean forceLive)
      Causes the element to aggregate on a timeout even when no live source is connected to its sinks. See GstAggregator:min-upstream-latency for a companion property: in the vast majority of cases where you plan to plug in live sources with a non-zero latency, you should set it to a non-zero value.
      Parameters:
      forceLive - the value for the force-live property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.22