Bug 1879816: Make nsCocoaWindow::Destroy close the window and let destruction happen...
[gecko.git] / dom / webidl / RTCRtpReceiver.webidl
blobd8002e6511acf6c8d8e55915cdf702b7f07da21d
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/.
5  *
6  * The origin of this IDL file is
7  * http://lists.w3.org/Archives/Public/public-webrtc/2014May/0067.html
8  */
10 [Pref="media.peerconnection.enabled",
11  Exposed=Window]
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();
18   [NewObject]
19   Promise<RTCStatsReport>               getStats();
21   // test-only: for testing getContributingSources
22   [ChromeOnly]
23   undefined mozInsertAudioLevelForContributingSource(unsigned long source,
24                                                      DOMHighResTimeStamp timestamp,
25                                                      unsigned long rtpTimestamp,
26                                                      boolean hasLevel,
27                                                      byte level);
30 //https://w3c.github.io/webrtc-extensions/#rtcrtpreceiver-jitterbuffertarget-rtcrtpreceiver-interface
31 partial interface RTCRtpReceiver {
32   [Throws]
33   attribute DOMHighResTimeStamp? jitterBufferTarget;
36 // https://w3c.github.io/webrtc-encoded-transform/#specification
37 partial interface RTCRtpReceiver {
38   [SetterThrows,
39    Pref="media.peerconnection.scripttransform.enabled"] attribute RTCRtpTransform? transform;