test_peerConnection_basicH264Video.html (705B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <script type="application/javascript" src="pc.js"></script> 5 </head> 6 <body> 7 <pre id="test"> 8 <script type="application/javascript"> 9 createHTML({ 10 bug: "1040346", 11 title: "Basic H.264 video-only peer connection" 12 }); 13 14 runNetworkTest(async function (options) { 15 const h264Support = checkPlatformH264CodecPrefs(); 16 ok(h264Support.any, "Should have some H264 support everywhere"); 17 if (!h264Support.any) { 18 return; 19 } 20 options = options || { }; 21 options.h264 = true; 22 const test = new PeerConnectionTest(options); 23 test.setMediaConstraints([{video: true}], [{video: true}]); 24 await test.run(); 25 }); 26 </script> 27 </pre> 28 </body> 29 </html>