Class Stream.Builder<B extends Stream.Builder<B>>

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

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

    • Builder

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

    • build

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

      public B setCaps(Caps caps)
      The GstCaps of the GstStream.
      Parameters:
      caps - the value for the caps property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setStreamFlags

      public B setStreamFlags(Set<StreamFlags> streamFlags)
    • setStreamId

      public B setStreamId(String streamId)
      The unique identifier of the GstStream. Can only be set at construction time.
      Parameters:
      streamId - the value for the stream-id property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setStreamType

      public B setStreamType(Set<StreamType> streamType)
      The GstStreamType of the GstStream. Can only be set at construction time.
      Parameters:
      streamType - the value for the stream-type property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTags

      public B setTags(TagList tags)
      The GstTagList of the GstStream.
      Parameters:
      tags - the value for the tags property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setStreamFlags

      public B setStreamFlags(StreamFlags... streamFlags)
    • setStreamType

      public B setStreamType(StreamType... streamType)
      The GstStreamType of the GstStream. Can only be set at construction time.
      Parameters:
      streamType - the value for the stream-type property
      Returns:
      the Builder instance is returned, to allow method chaining