RTCRtpReceiver.webidl (1748B)
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 */ 9 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 RTCRtpReceiveParameters getParameters(); 17 sequence<RTCRtpContributingSource> getContributingSources(); 18 sequence<RTCRtpSynchronizationSource> getSynchronizationSources(); 19 [NewObject] 20 Promise<RTCStatsReport> getStats(); 21 22 // test-only: for testing getContributingSources 23 [ChromeOnly] 24 undefined mozInsertAudioLevelForContributingSource(unsigned long source, 25 DOMHighResTimeStamp timestamp, 26 unsigned long rtpTimestamp, 27 boolean hasLevel, 28 byte level); 29 }; 30 31 //https://w3c.github.io/webrtc-extensions/#rtcrtpreceiver-jitterbuffertarget-rtcrtpreceiver-interface 32 partial interface RTCRtpReceiver { 33 [Throws] 34 attribute DOMHighResTimeStamp? jitterBufferTarget; 35 }; 36 37 // https://w3c.github.io/webrtc-encoded-transform/#specification 38 partial interface RTCRtpReceiver { 39 [SetterThrows, 40 Pref="media.peerconnection.scripttransform.enabled"] attribute RTCRtpTransform? transform; 41 };