Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: content/test/data/media/getusermedia-real-webcam.html

Issue 663793003: Relanding WebRTC real webcam browsertest for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/data/media/webrtc_test_utilities.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="webrtc_test_utilities.js"></script>
4 <script type="text/javascript">
5 $ = function(id) {
6 return document.getElementById(id);
7 };
8
9 function getUserMediaAndReturnVideoDimensions(constraints) {
10 navigator.webkitGetUserMedia(
11 constraints, gotStreamCallback, failedCallback);
12 }
13
14 function failedCallback(error) {
15 failTest('GetUserMedia call failed with code ' + error.code);
16 }
17
18 function gotStreamCallback(stream) {
19 var localView = $('local-view');
20 localView.src = URL.createObjectURL(stream);
21 detectVideoPlaying('local-view', function() {
22 sendValueToTest(localView.videoWidth + 'x' + localView.videoHeight);
23 });
24 }
25 </script>
26 </head>
27 <body>
28 <table border="0">
29 <tr>
30 <td><video id="local-view" autoplay="autoplay">
31 </video></td>
32 <td><canvas id="local-view-canvas" style="display:none"></canvas></td>
33 </tr>
34 </table>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | content/test/data/media/webrtc_test_utilities.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698