| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> | 3 <script type="text/javascript" src="webrtc_test_utilities.js"></script> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 $ = function(id) { | 5 $ = function(id) { |
| 6 return document.getElementById(id); | 6 return document.getElementById(id); |
| 7 }; | 7 }; |
| 8 | 8 |
| 9 setAllEventsOccuredHandler(function() { | 9 setAllEventsOccuredHandler(function() { |
| 10 reportTestSuccess(); | 10 reportTestSuccess(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 'facing': device.facing | 22 'facing': device.facing |
| 23 }); | 23 }); |
| 24 } | 24 } |
| 25 sendValueToTest(JSON.stringify(results)); | 25 sendValueToTest(JSON.stringify(results)); |
| 26 }); | 26 }); |
| 27 } | 27 } |
| 28 | 28 |
| 29 // Creates a MediaStream and renders it locally. When the video is detected to | 29 // Creates a MediaStream and renders it locally. When the video is detected to |
| 30 // be rolling, the stream should be stopped. | 30 // be rolling, the stream should be stopped. |
| 31 function getUserMediaAndStop(constraints) { | 31 function getUserMediaAndStop(constraints) { |
| 32 console.log('Calling getUserMediaAndStop.'); | 32 console.log('Calling getUserMediaAndStop. constraints : ' + |
| 33 JSON.stringify(constraints)); |
| 33 navigator.webkitGetUserMedia( | 34 navigator.webkitGetUserMedia( |
| 34 constraints, | 35 constraints, |
| 35 function(stream) { | 36 function(stream) { |
| 36 detectVideoInLocalView1(stream, function() { | 37 detectVideoInLocalView1(stream, function() { |
| 37 stream.getVideoTracks()[0].stop(); | 38 stream.getVideoTracks()[0].stop(); |
| 38 waitForVideoToStop('local-view-1'); | 39 waitForVideoToStop('local-view-1'); |
| 39 }); | 40 }); |
| 40 }, | 41 }, |
| 41 failedCallback); | 42 failedCallback); |
| 42 } | 43 } |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 </tr> | 531 </tr> |
| 531 <tr> | 532 <tr> |
| 532 <td><video id="local-view-2" width="320" height="240" autoplay | 533 <td><video id="local-view-2" width="320" height="240" autoplay |
| 533 style="display:none"></video></td> | 534 style="display:none"></video></td> |
| 534 <td><canvas id="local-view-2-canvas" width="320" height="240" | 535 <td><canvas id="local-view-2-canvas" width="320" height="240" |
| 535 style="display:none"></canvas></td> | 536 style="display:none"></canvas></td> |
| 536 </tr> | 537 </tr> |
| 537 </table> | 538 </table> |
| 538 </body> | 539 </body> |
| 539 </html> | 540 </html> |
| OLD | NEW |