Interface StreamMetadata.Builder

Enclosing interface:
StreamMetadata

public static interface StreamMetadata.Builder
Builder interface for creating immutable StreamMetadata instances.
  • Method Details

    • description

      StreamMetadata.Builder description(String description)
      Sets the description of the media stream.
      Parameters:
      description - the description.
      Returns:
      this Builder instance.
    • custom

      Sets the custom metadata associated with the media stream.
      Parameters:
      custom - the custom metadata.
      Returns:
      this Builder instance.
    • addCustom

      StreamMetadata.Builder addCustom(String key, Object value)
      Adds a custom key-value pair to the metadata.
      Parameters:
      key - the key.
      value - the value.
      Returns:
      this Builder instance.
    • streamDirection

      StreamMetadata.Builder streamDirection(String streamDirection)
      Sets the stream direction associated with the media stream.
      Parameters:
      streamDirection - the stream direction.
      Returns:
      this Builder instance.
    • build

      Builds the StreamMetadata instance.
      Returns:
      an immutable StreamMetadata instance.