Interface MediaStream.Builder

All Superinterfaces:
Buildable, CopyableBuilder<MediaStream.Builder,MediaStream>, SdkBuilder<MediaStream.Builder,MediaStream>, SdkPojo
Enclosing class:
MediaStream

public static interface MediaStream.Builder extends SdkPojo, CopyableBuilder<MediaStream.Builder,MediaStream>
  • Method Details

    • attributes

      Attributes that are related to the media stream.
      Parameters:
      attributes - Attributes that are related to the media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      Attributes that are related to the media stream. This is a convenience method that creates an instance of the MediaStreamAttributes.Builder avoiding the need to create one manually via MediaStreamAttributes.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attributes(MediaStreamAttributes).

      Parameters:
      attributes - a consumer that will call methods on MediaStreamAttributes.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • clockRate

      MediaStream.Builder clockRate(Integer clockRate)
      The sample rate for the stream. This value is measured in Hz.
      Parameters:
      clockRate - The sample rate for the stream. This value is measured in Hz.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      MediaStream.Builder description(String description)
      A description that can help you quickly identify what your media stream is used for.
      Parameters:
      description - A description that can help you quickly identify what your media stream is used for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fmt

      The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.
      Parameters:
      fmt - The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mediaStreamId

      MediaStream.Builder mediaStreamId(Integer mediaStreamId)
      A unique identifier for the media stream.
      Parameters:
      mediaStreamId - A unique identifier for the media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mediaStreamName

      MediaStream.Builder mediaStreamName(String mediaStreamName)
      A name that helps you distinguish one media stream from another.
      Parameters:
      mediaStreamName - A name that helps you distinguish one media stream from another.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mediaStreamType

      MediaStream.Builder mediaStreamType(String mediaStreamType)
      The type of media stream.
      Parameters:
      mediaStreamType - The type of media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • mediaStreamType

      MediaStream.Builder mediaStreamType(MediaStreamType mediaStreamType)
      The type of media stream.
      Parameters:
      mediaStreamType - The type of media stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • videoFormat

      MediaStream.Builder videoFormat(String videoFormat)
      The resolution of the video.
      Parameters:
      videoFormat - The resolution of the video.
      Returns:
      Returns a reference to this object so that method calls can be chained together.