basic.https.html (908B)
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 const rids = [0, 1]; 16 const pc1 = new RTCPeerConnection(); 17 t.add_cleanup(() => pc1.close()); 18 const pc2 = new RTCPeerConnection(); 19 t.add_cleanup(() => pc2.close()); 20 21 await negotiateSimulcastAndWaitForVideo(t, await getCameraStream(t), rids, pc1, pc2); 22 }, 'Basic simulcast setup with two spatial layers'); 23 </script>