Interface CodecParameters.Builder
- Enclosing interface:
- CodecParameters
public static interface CodecParameters.Builder
Builder interface for creating immutable
CodecParameters instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theCodecParametersinstance.channelCount(Integer channelCount) Sets the number of audio channels.Sets the codec format ( e.g. ,F32 sl16).formatParams(String formatParams) Sets the codec format parameters (e.g., fmtp).rtpPayloadType(Integer rtpPayloadType) Sets the RTP payload type.samplingRate(Integer samplingRate) Sets the sampling rate in Hz.targetBitrate(Integer targetBitrate) Sets the target bitrate in bits per second.
-
Method Details
-
rtpPayloadType
Sets the RTP payload type.- Parameters:
rtpPayloadType- the RTP payload type.- Returns:
- the builder instance.
-
samplingRate
Sets the sampling rate in Hz.- Parameters:
samplingRate- the sampling rate in Hz.- Returns:
- the builder instance.
-
channelCount
Sets the number of audio channels.- Parameters:
channelCount- the number of channels.- Returns:
- the builder instance.
-
targetBitrate
Sets the target bitrate in bits per second.- Parameters:
targetBitrate- the target bitrate.- Returns:
- the builder instance.
-
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
CodecParameters build()Builds theCodecParametersinstance.- Returns:
- an immutable
CodecParametersinstance.
-