tor-browser

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

idlharness.window.js (523B)


      1 // META: script=/resources/WebIDLParser.js
      2 // META: script=/resources/idlharness.js
      3 // META: script=/webrtc/RTCPeerConnection-helper.js
      4 
      5 'use strict';
      6 
      7 idl_test(
      8  ['mst-content-hint'],
      9  ['mediacapture-streams', 'webrtc', 'dom'],
     10  async idl_array => {
     11    idl_array.add_objects({
     12      MediaStreamTrack: ['audioTrack', 'videoTrack'],
     13    });
     14 
     15    const stream = await getNoiseStream({ audio: true, video: true });
     16    self.audioTrack = stream.getAudioTracks()[0];
     17    self.videoTrack = stream.getVideoTracks()[0];
     18  }
     19 );