OLD | NEW |
1 <html> | 1 <html> |
2 <body onload="start()"> | 2 <body onload="start()"> |
| 3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 4 (Please avoid writing new tests using video-test.js) --> |
3 <script src=../../media-resources/video-test.js></script> | 5 <script src=../../media-resources/video-test.js></script> |
4 <script src=../../media-resources/media-file.js></script> | 6 <script src=../../media-resources/media-file.js></script> |
5 <script> | 7 <script> |
6 waitForEvent('error', function() { | 8 waitForEvent('error', function() { |
7 failTest("error: " + JSON.stringify(video.error)); | 9 failTest("error: " + JSON.stringify(video.error)); |
8 }); | 10 }); |
9 | 11 |
10 waitForEvent('playing', function() { | 12 waitForEvent('playing', function() { |
11 try { | 13 try { |
12 var ctx = document.getElementsByTagName('canvas')[0].getContext("2
d"); | 14 var ctx = document.getElementsByTagName('canvas')[0].getContext("2
d"); |
(...skipping 11 matching lines...) Expand all Loading... |
24 var type = mimeTypeForExtension(mediaFile.split('.').pop()); | 26 var type = mimeTypeForExtension(mediaFile.split('.').pop()); |
25 video.src = "http://localhost:8080/security/resources/video-cross-or
igin-allow.php?name=" + mediaFile + "&type=" + type; | 27 video.src = "http://localhost:8080/security/resources/video-cross-or
igin-allow.php?name=" + mediaFile + "&type=" + type; |
26 video.play(); | 28 video.play(); |
27 } | 29 } |
28 </script> | 30 </script> |
29 | 31 |
30 <video crossorigin></video> | 32 <video crossorigin></video> |
31 <canvas></canvas> | 33 <canvas></canvas> |
32 </body> | 34 </body> |
33 </head> | 35 </head> |
OLD | NEW |