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://lists.w3.org/Archives/Public/public-webrtc/2014May/0067.html
10 [Pref="media.peerconnection.enabled",
12 interface RTCRtpReceiver {
13 readonly attribute MediaStreamTrack track;
14 readonly attribute RTCDtlsTransport? transport;
15 static RTCRtpCapabilities? getCapabilities(DOMString kind);
16 sequence<RTCRtpContributingSource> getContributingSources();
17 sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
19 Promise<RTCStatsReport> getStats();
21 // test-only: for testing getContributingSources
23 undefined mozInsertAudioLevelForContributingSource(unsigned long source,
24 DOMHighResTimeStamp timestamp,
25 unsigned long rtpTimestamp,
30 //https://w3c.github.io/webrtc-extensions/#rtcrtpreceiver-jitterbuffertarget-rtcrtpreceiver-interface
31 partial interface RTCRtpReceiver {
33 attribute DOMHighResTimeStamp? jitterBufferTarget;
36 // https://w3c.github.io/webrtc-encoded-transform/#specification
37 partial interface RTCRtpReceiver {
39 Pref="media.peerconnection.scripttransform.enabled"] attribute RTCRtpTransform? transform;