java.lang.Object
dev.onvoid.webrtc.RTCRtpCodecParameters
Describes the configuration parameters for a single media codec.
- Author:
- Alex Andres
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Integer
When present, indicates the number of audio channels (mono=1, stereo=2).final Integer
The codec clock rate expressed in Hertz.final String
Used to identify the codec.final MediaType
The media type of the codec.The "format specific parameters" field from the "a=fmtp" line in the SDP corresponding to the codec, if one exists.final int
The RTP payload type used to identify this codec. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
payloadType
public final int payloadTypeThe RTP payload type used to identify this codec. -
mediaType
The media type of the codec. Equivalent to the MIME top-level type. -
codecName
Used to identify the codec. Equivalent to the MIME subtype. -
clockRate
The codec clock rate expressed in Hertz. -
channels
When present, indicates the number of audio channels (mono=1, stereo=2). -
parameters
The "format specific parameters" field from the "a=fmtp" line in the SDP corresponding to the codec, if one exists. For an RTCRtpSender, these parameters come from the remote description, and for an RTCRtpReceiver, they come from the local description.
-
-
Constructor Details
-
RTCRtpCodecParameters
public RTCRtpCodecParameters(int payloadType, MediaType mediaType, String codecName, Integer clockRate, Integer channels, Map<String, String> parameters) Creates an instance of RTCRtpCodecParameters with the specified media codec parameters.- Parameters:
payloadType
- The RTP payload type used to identify the codec.mediaType
- The media type of the codec.codecName
- The codec name. Equivalent to the MIME subtype.clockRate
- The codec clock rate expressed in Hertz.channels
- The number of audio channels. Unused for video codecs.parameters
- The "a=fmtp" parameters in the SDP.
-
-
Method Details