Interface TransportStream.Builder

  • Method Details

    • channels

      TransportStream.Builder channels(Integer channels)

      The number of channels in the audio stream.

      Parameters:
      channels - The number of channels in the audio stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • codec

      The codec used by the stream.

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

      TransportStream.Builder frameRate(String frameRate)

      The frame rate used by the video stream.

      Parameters:
      frameRate - The frame rate used by the video stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frameResolution

      TransportStream.Builder frameResolution(FrameResolution frameResolution)

      The frame resolution used by the video stream.

      Parameters:
      frameResolution - The frame resolution used by the video stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • frameResolution

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

      The frame resolution used by the video stream.

      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:
    • pid

      The Packet ID (PID) as it is reported in the Program Map Table.

      Parameters:
      pid - The Packet ID (PID) as it is reported in the Program Map Table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleRate

      TransportStream.Builder sampleRate(Integer sampleRate)

      The sample rate used by the audio stream.

      Parameters:
      sampleRate - The sample rate used by the audio stream.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleSize

      TransportStream.Builder sampleSize(Integer sampleSize)

      The sample bit size used by the audio stream.

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

      TransportStream.Builder streamType(String streamType)

      The Stream Type as it is reported in the Program Map Table.

      Parameters:
      streamType - The Stream Type as it is reported in the Program Map Table.
      Returns:
      Returns a reference to this object so that method calls can be chained together.