2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2014-08-14 05:40:41 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://lists.w3.org/Archives/Public/public-webrtc/2014May/0067.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
[Pref="media.peerconnection.enabled",
|
2019-09-27 18:26:14 +03:00
|
|
|
Exposed=Window]
|
2014-08-14 05:40:41 +04:00
|
|
|
interface RTCRtpReceiver {
|
2017-11-14 20:20:29 +03:00
|
|
|
readonly attribute MediaStreamTrack track;
|
2020-09-01 01:54:29 +03:00
|
|
|
readonly attribute RTCDtlsTransport? transport;
|
2017-11-14 20:20:29 +03:00
|
|
|
Promise<RTCStatsReport> getStats();
|
2018-01-12 22:59:19 +03:00
|
|
|
[Pref="media.peerconnection.rtpsourcesapi.enabled"]
|
2017-11-14 20:20:29 +03:00
|
|
|
sequence<RTCRtpContributingSource> getContributingSources();
|
2018-01-12 22:59:19 +03:00
|
|
|
[Pref="media.peerconnection.rtpsourcesapi.enabled"]
|
2017-11-14 20:20:29 +03:00
|
|
|
sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
|
2020-03-20 18:33:55 +03:00
|
|
|
|
|
|
|
[ChromeOnly]
|
|
|
|
void mozAddRIDExtension(unsigned short extensionId);
|
|
|
|
[ChromeOnly]
|
|
|
|
void mozAddRIDFilter(DOMString rid);
|
|
|
|
// test-only: for testing getContributingSources
|
|
|
|
[ChromeOnly]
|
|
|
|
void mozInsertAudioLevelForContributingSource(unsigned long source,
|
|
|
|
DOMHighResTimeStamp timestamp,
|
|
|
|
unsigned long rtpTimestamp,
|
|
|
|
boolean hasLevel,
|
|
|
|
byte level);
|
2014-08-14 05:40:41 +04:00
|
|
|
};
|