1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface
10 enum RTCPriorityType {
17 enum RTCDegradationPreference {
19 "maintain-resolution",
23 dictionary RTCRtpEncodingParameters {
24 boolean active = true;
25 // From https://www.w3.org/TR/webrtc-priority/
26 RTCPriorityType priority = "low";
27 unsigned long maxBitrate;
29 double scaleResolutionDownBy;
30 // From https://w3c.github.io/webrtc-extensions/#rtcrtpencodingparameters-dictionary
34 dictionary RTCRtpHeaderExtensionParameters {
40 dictionary RTCRtcpParameters {
45 dictionary RTCRtpCodecParameters {
46 unsigned short payloadType;
48 unsigned long clockRate;
49 unsigned short channels = 1;
50 DOMString sdpFmtpLine;
53 dictionary RTCRtpParameters {
54 // We do not support these, but every wpt test involving parameters insists
55 // that these be present, regardless of whether the test-case has anything to
56 // do with these in particular (see validateRtpParameters).
57 sequence<RTCRtpHeaderExtensionParameters> headerExtensions;
58 RTCRtcpParameters rtcp;
59 sequence<RTCRtpCodecParameters> codecs;
62 dictionary RTCRtpSendParameters : RTCRtpParameters {
63 DOMString transactionId;
64 required sequence<RTCRtpEncodingParameters> encodings;