test_peerConnection_answererAddSecondAudioStream.html (805B)
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: "1017888", 11 title: "Renegotiation: answerer adds second audio stream" 12 }); 13 14 runNetworkTest(function (options) { 15 const test = new PeerConnectionTest(options); 16 addRenegotiationAnswerer(test.chain, 17 [ 18 function PC_LOCAL_ADD_SECOND_STREAM(test) { 19 test.setMediaConstraints([{audio: true}, {audio: true}], 20 [{audio: true}]); 21 return test.pcLocal.getAllUserMediaAndAddStreams([{audio: true}]); 22 }, 23 ] 24 ); 25 26 test.setMediaConstraints([{audio: true}], [{audio: true}]); 27 return test.run(); 28 }); 29 </script> 30 </pre> 31 </body> 32 </html>