tor-browser

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

RTCEncodedAudioFrame.webidl (1179B)


      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 * https://w3c.github.io/webrtc-encoded-transform
      8 */
      9 
     10 dictionary RTCEncodedAudioFrameMetadata {
     11    unsigned long synchronizationSource;
     12    octet payloadType;
     13    sequence<unsigned long> contributingSources;
     14    short sequenceNumber;
     15 };
     16 
     17 dictionary RTCEncodedAudioFrameOptions {
     18    RTCEncodedAudioFrameMetadata metadata;
     19 };
     20 
     21 // [Serializable] is implemented without adding attribute here,
     22 // because we don't implement "full serialization" to disk.
     23 [Pref="media.peerconnection.enabled",
     24 Pref="media.peerconnection.scripttransform.enabled",
     25 Exposed=(Window,DedicatedWorker)]
     26 interface RTCEncodedAudioFrame {
     27    [Throws]
     28    constructor(RTCEncodedAudioFrame originalFrame, optional RTCEncodedAudioFrameOptions options = {});
     29    readonly attribute unsigned long timestamp;
     30    attribute ArrayBuffer data;
     31    RTCEncodedAudioFrameMetadata getMetadata();
     32 };