tor-browser

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

av1.https.html (1206B)


      1 <!doctype html>
      2 <meta charset=utf-8>
      3 <title>RTCPeerConnection Simulcast Tests</title>
      4 <meta name="timeout" content="long">
      5 <script src="../third_party/sdp/sdp.js"></script>
      6 <script src="simulcast.js"></script>
      7 <script src="../RTCPeerConnection-helper.js"></script>
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/resources/testdriver.js"></script>
     11 <script src="/resources/testdriver-vendor.js"></script>
     12 <script src="../../mediacapture-streams/permission-helper.js"></script>
     13 <script>
     14 promise_test(async t => {
     15  assert_implements('getCapabilities' in RTCRtpSender, 'RTCRtpSender.getCapabilities not supported');
     16  assert_implements_optional(RTCRtpSender.getCapabilities('video').codecs.find(c => c.mimeType === 'video/AV1'), 'AV1 not supported');
     17 
     18  const rids = [0, 1];
     19  const pc1 = new RTCPeerConnection();
     20  t.add_cleanup(() => pc1.close());
     21  const pc2 = new RTCPeerConnection();
     22  t.add_cleanup(() => pc2.close());
     23 
     24  return negotiateSimulcastAndWaitForVideo(t, await getCameraStream(t), rids, pc1, pc2,
     25                                           {mimeType: 'video/AV1'});
     26 }, 'AV1 simulcast setup with two streams');
     27 </script>