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",
|
2014-08-14 05:40:54 +04:00
|
|
|
JSImplementation="@mozilla.org/dom/rtpreceiver;1"]
|
2014-08-14 05:40:41 +04:00
|
|
|
interface RTCRtpReceiver {
|
2017-11-14 20:20:29 +03:00
|
|
|
readonly attribute MediaStreamTrack track;
|
|
|
|
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();
|
2017-12-21 02:00:40 +03:00
|
|
|
|
|
|
|
[ChromeOnly]
|
|
|
|
void setStreamIds(sequence<DOMString> streamIds);
|
|
|
|
[ChromeOnly]
|
2019-04-29 18:52:03 +03:00
|
|
|
void setRecvBit(boolean recvBit);
|
2017-12-21 02:00:40 +03:00
|
|
|
[ChromeOnly]
|
|
|
|
void processTrackAdditionsAndRemovals(
|
|
|
|
RTCRtpTransceiver transceiver,
|
|
|
|
object postProcessing);
|
2014-08-14 05:40:41 +04:00
|
|
|
};
|