Interface CodecParameters.Builder

Enclosing interface:
CodecParameters

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

    • rtpPayloadType

      CodecParameters.Builder rtpPayloadType(Integer rtpPayloadType)
      Sets the RTP payload type.
      Parameters:
      rtpPayloadType - the RTP payload type.
      Returns:
      the builder instance.
    • samplingRate

      CodecParameters.Builder samplingRate(Integer samplingRate)
      Sets the sampling rate in Hz.
      Parameters:
      samplingRate - the sampling rate in Hz.
      Returns:
      the builder instance.
    • channelCount

      CodecParameters.Builder channelCount(Integer channelCount)
      Sets the number of audio channels.
      Parameters:
      channelCount - the number of channels.
      Returns:
      the builder instance.
    • targetBitrate

      CodecParameters.Builder targetBitrate(Integer targetBitrate)
      Sets the target bitrate in bits per second.
      Parameters:
      targetBitrate - the target bitrate.
      Returns:
      the builder instance.
    • formatParams

      CodecParameters.Builder formatParams(String formatParams)
      Sets the codec format parameters (e.g., fmtp).
      Parameters:
      formatParams - the format parameters.
      Returns:
      the builder instance.
    • format

      Sets the codec format ( e.g. ,F32 sl16).
      Returns:
      format string, or null if not set.
    • build

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