Class BaseSrc.Builder<B extends BaseSrc.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Direct Known Subclasses:
AppSrc.Builder, PushSrc.Builder
Enclosing class:
BaseSrc

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

      public B setAutomaticEos(boolean automaticEos)
      See gst_base_src_set_automatic_eos()
      Parameters:
      automaticEos - the value for the automatic-eos property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.24
    • setBlocksize

      public B setBlocksize(int blocksize)
    • setDoTimestamp

      public B setDoTimestamp(boolean doTimestamp)
    • setNumBuffers

      public B setNumBuffers(int numBuffers)
    • setTypefind

      public B setTypefind(boolean typefind)