Interface RtmpMediaStreamInfo.Builder

  • Method Details

    • streamId

      A unique identifier for the stream.

      Parameters:
      streamId - A unique identifier for the stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • streamType

      RtmpMediaStreamInfo.Builder streamType(String streamType)

      The type of stream (for example, VIDEO or AUDIO).

      Parameters:
      streamType - The type of stream (for example, VIDEO or AUDIO).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • streamType

      The type of stream (for example, VIDEO or AUDIO).

      Parameters:
      streamType - The type of stream (for example, VIDEO or AUDIO).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • codec

      The codec used for the stream.

      Parameters:
      codec - The codec used for the stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frameRate

      RtmpMediaStreamInfo.Builder frameRate(String frameRate)

      The number of video frames displayed per second. Used when the streamType is VIDEO.

      Parameters:
      frameRate - The number of video frames displayed per second. Used when the streamType is VIDEO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frameResolution

      RtmpMediaStreamInfo.Builder frameResolution(FrameResolution frameResolution)

      The width and height dimensions of the video frame in pixels. Used when the streamType is VIDEO.

      Parameters:
      frameResolution - The width and height dimensions of the video frame in pixels. Used when the streamType is VIDEO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frameResolution

      default RtmpMediaStreamInfo.Builder frameResolution(Consumer<FrameResolution.Builder> frameResolution)

      The width and height dimensions of the video frame in pixels. Used when the streamType is VIDEO.

      This is a convenience method that creates an instance of the FrameResolution.Builder avoiding the need to create one manually via FrameResolution.builder().

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

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

      RtmpMediaStreamInfo.Builder scanMode(String scanMode)

      The method used to display video frames. Used when the streamType is VIDEO.

      Parameters:
      scanMode - The method used to display video frames. Used when the streamType is VIDEO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanMode

      The method used to display video frames. Used when the streamType is VIDEO.

      Parameters:
      scanMode - The method used to display video frames. Used when the streamType is VIDEO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • color

      The color signaling of the video stream. Used when the streamType is VIDEO.

      Parameters:
      color - The color signaling of the video stream. Used when the streamType is VIDEO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • color

      The color signaling of the video stream. Used when the streamType is VIDEO.

      This is a convenience method that creates an instance of the ColorInformation.Builder avoiding the need to create one manually via ColorInformation.builder().

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

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

      The number of audio channels in the stream. Used when the streamType is AUDIO.

      Parameters:
      channels - The number of audio channels in the stream. Used when the streamType is AUDIO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleRate

      RtmpMediaStreamInfo.Builder sampleRate(Integer sampleRate)

      The number of audio samples captured per second. Used when the streamType is AUDIO.

      Parameters:
      sampleRate - The number of audio samples captured per second. Used when the streamType is AUDIO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleSize

      RtmpMediaStreamInfo.Builder sampleSize(Integer sampleSize)

      The sample bit size used by the audio stream. Used when the streamType is AUDIO.

      Parameters:
      sampleSize - The sample bit size used by the audio stream. Used when the streamType is AUDIO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • language

      RtmpMediaStreamInfo.Builder language(String language)

      The language of the audio stream. Used when the streamType is AUDIO.

      Parameters:
      language - The language of the audio stream. Used when the streamType is AUDIO.
      Returns:
      Returns a reference to this object so that method calls can be chained together.