An instance of the WebRTC API's RTCRtpEncodingParameters dictionary describes a single configuration of a codec. It's used in the RTCRtpParameters describing the configuration of an RTP sender or receiver.
activetrue, the described encoding is currently actively being used. That is, for RTP senders, the encoding is currently being used to send data, while for receivers, the encoding is being used to decode received data.codecPayloadTypeRTCRtpSender, codecPayloadType is a single 8-bit byte (or octet) specifying the codec to use for sending the stream.dtxRTCRtpSender, this property indicates whether or not to use discontinuous transmission (a feature by which a phone is turned off or the microphone muted automatically in the absence of voice activity). Defaults to true.maxBitratemaxFramerate or transport or physical network limitations.maxFrameratepriorityRTCPriorityType enumerated type which indicates the encoding's priority. Default value is "low".ptimeRTCRtpSender, indicates the preferred duration of a media packet in milliseconds. This is typically only relevant for audio encodings. The user agent will try to match this as well as it can.ridDOMString which, if set, specifies an RTP stream ID (RID) to be sent using the RID header extension. This parameter cannot be modified using setParameters(). Its value can only be set when the transceiver is first created.scaleResolutionDownBykind is "video", this is a double-precision floating-point value specifying a scaling factor to apply while encoding the video. The default value, 1.0, means that the sent video's size will be the same as the original. A value of 2.0 scales the video frames down by a factor of 2 in each dimension, resulting in a video 1/4 the size of the original. The value must not be less than 1.0.RTCRtpSender, RTCRtpReceiver, and RTCRtpTransceiver
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpEncodingParameters