test_peerConnection_restrictBandwidthWithTias.html (812B)
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: "1359854", 11 title: "500Kb restricted video-only peer connection" 12 }); 13 14 runNetworkTest(function (options) { 15 const test = new PeerConnectionTest(options); 16 test.setMediaConstraints([{video: true}], [{video: true}]); 17 test.chain.insertAfter('PC_REMOTE_GET_OFFER', [ 18 function PC_REMOTE_ADD_TIAS(test) { 19 test._local_offer.sdp = sdputils.addTiasBps( 20 test._local_offer.sdp, 250000); 21 info("Offer with TIAS: " + JSON.stringify(test._local_offer)); 22 } 23 ]); 24 // TODO it would be nice to verify the used bandwidth 25 return test.run(); 26 }); 27 </script> 28 </pre> 29 </body> 30 </html>