https://github.com/web-platform-tests/wpt
Raw File
Tip revision: f941f71d5aae723c2204aa8c1024280b9ecab055 authored by Sam Goto on 18 December 2018, 20:56:38 UTC
Idle Detection API: Prototype
Tip revision: f941f71
idlharness.window.js
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: script=/webrtc/RTCPeerConnection-helper.js

'use strict';

idl_test(
  ['mst-content-hint'],
  ['mediacapture-streams', 'dom'],
  async idl_array => {
    idl_array.add_objects({
      MediaStreamTrack: ['audioTrack', 'videoTrack'],
    });

    const stream = await getNoiseStream({ audio: true, video: true });
    self.audioTrack = stream.getAudioTracks()[0];
    self.videoTrack = stream.getVideoTracks()[0];
  }
);
back to top