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 JSImplementation="@mozilla.org/dom/rtpreceiver;1"]
12interface RTCRtpReceiver {
13  readonly attribute MediaStreamTrack   track;
14  Promise<RTCStatsReport>               getStats();
15  [Pref="media.peerconnection.rtpsourcesapi.enabled"]
16  sequence<RTCRtpContributingSource>    getContributingSources();
17  [Pref="media.peerconnection.rtpsourcesapi.enabled"]
18  sequence<RTCRtpSynchronizationSource> getSynchronizationSources();
19
20  [ChromeOnly]
21  undefined setStreamIds(sequence<DOMString> streamIds);
22  [ChromeOnly]
23  undefined setRemoteSendBit(boolean sendBit);
24  [ChromeOnly]
25  undefined processTrackAdditionsAndRemovals(
26      RTCRtpTransceiver transceiver,
27      object postProcessing);
28};
29