tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RTCRtpSender.webidl (1370B)


      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://w3c.github.io/webrtc-pc/#rtcrtpsender-interface
      8 */
      9 
     10 [Pref="media.peerconnection.enabled",
     11 Exposed=Window]
     12 interface RTCRtpSender {
     13  readonly attribute MediaStreamTrack? track;
     14  readonly attribute RTCDtlsTransport? transport;
     15  static RTCRtpCapabilities? getCapabilities(DOMString kind);
     16  [NewObject]
     17  Promise<undefined> setParameters (RTCRtpSendParameters parameters);
     18  RTCRtpSendParameters getParameters();
     19  [Throws]
     20  Promise<undefined> replaceTrack(MediaStreamTrack? withTrack);
     21  [Throws]
     22  undefined setStreams(MediaStream... streams);
     23  [NewObject]
     24  Promise<RTCStatsReport> getStats();
     25  readonly attribute RTCDTMFSender? dtmf;
     26  [ChromeOnly]
     27  sequence<MediaStream> getStreams();
     28  [ChromeOnly]
     29  undefined setStreamsImpl(MediaStream... streams);
     30  [ChromeOnly]
     31  undefined setTrack(MediaStreamTrack? track);
     32 };
     33 
     34 // https://w3c.github.io/webrtc-encoded-transform/#specification
     35 partial interface RTCRtpSender {
     36  [SetterThrows,
     37   Pref="media.peerconnection.scripttransform.enabled"] attribute RTCRtpTransform? transform;
     38 };