Module webrtc.java

Class RTCRtpCodecParameters

java.lang.Object
dev.onvoid.webrtc.RTCRtpCodecParameters

public class RTCRtpCodecParameters extends Object
Describes the configuration parameters for a single media codec.
Author:
Alex Andres
  • Field Details

    • payloadType

      public final int payloadType
      The RTP payload type used to identify this codec.
    • mediaType

      public final MediaType mediaType
      The media type of the codec. Equivalent to the MIME top-level type.
    • codecName

      public final String codecName
      Used to identify the codec. Equivalent to the MIME subtype.
    • clockRate

      public final Integer clockRate
      The codec clock rate expressed in Hertz.
    • channels

      public final Integer channels
      When present, indicates the number of audio channels (mono=1, stereo=2).
    • parameters

      public final Map<String,String> 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