Class AudioAggregator.Builder<B extends AudioAggregator.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setAlignmentThreshold(long alignmentThreshold)
    • setDiscontWait

      public B setDiscontWait(long discontWait)
    • 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
    • setIgnoreInactivePads

      public B setIgnoreInactivePads(boolean ignoreInactivePads)

      Don't wait for inactive pads when live. An inactive pad is a pad that hasn't yet received a buffer, but that has been waited on at least once.

      The purpose of this property is to avoid aggregating on timeout when new pads are requested in advance of receiving data flow, for example the user may decide to connect it later, but wants to configure it already.

      Parameters:
      ignoreInactivePads - the value for the ignore-inactive-pads property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.20
    • setOutputBufferDuration

      public B setOutputBufferDuration(long outputBufferDuration)