h264.https.html (1379B)
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 /* 15 * Chromium note: this requires build bots with H264 support. See 16 * https://bugs.chromium.org/p/chromium/issues/detail?id=840659 17 * for details on how to enable support. 18 */ 19 promise_test(async t => { 20 assert_implements('getCapabilities' in RTCRtpSender, 'RTCRtpSender.getCapabilities not supported'); 21 assert_implements(RTCRtpSender.getCapabilities('video').codecs.find(c => c.mimeType === 'video/H264'), 'H264 not supported'); 22 23 const rids = [0, 1]; 24 const pc1 = new RTCPeerConnection(); 25 t.add_cleanup(() => pc1.close()); 26 const pc2 = new RTCPeerConnection(); 27 t.add_cleanup(() => pc2.close()); 28 29 await negotiateSimulcastAndWaitForVideo(t, await getCameraStream(t), rids, pc1, pc2, 30 {mimeType: 'video/H264'}); 31 }, 'H264 simulcast setup with two streams'); 32 </script>