OLD | NEW |
1 <html> | 1 <html> |
2 <body onload="start()"> | 2 <body onload="start()"> |
3 <script src=../../media-resources/video-test.js></script> | 3 <script src=../../media-resources/video-test.js></script> |
4 <script src=../../media-resources/media-file.js></script> | 4 <script src=../../media-resources/media-file.js></script> |
5 <script> | 5 <script> |
6 waitForEvent('error', function() { | 6 waitForEvent('error', function() { |
7 failTest("error: " + JSON.stringify(video.error)); | 7 failTest("error: " + JSON.stringify(video.error)); |
8 }); | 8 }); |
9 | 9 |
10 waitForEvent('playing', function() { | 10 waitForEvent('playing', function() { |
(...skipping 13 matching lines...) Expand all Loading... |
24 var type = mimeTypeForExtension(mediaFile.split('.').pop()); | 24 var type = mimeTypeForExtension(mediaFile.split('.').pop()); |
25 video.src = "http://localhost:8080/security/resources/video-cross-or
igin-allow.php?name=" + mediaFile + "&type=" + type; | 25 video.src = "http://localhost:8080/security/resources/video-cross-or
igin-allow.php?name=" + mediaFile + "&type=" + type; |
26 video.play(); | 26 video.play(); |
27 } | 27 } |
28 </script> | 28 </script> |
29 | 29 |
30 <video crossorigin></video> | 30 <video crossorigin></video> |
31 <canvas></canvas> | 31 <canvas></canvas> |
32 </body> | 32 </body> |
33 </head> | 33 </head> |
OLD | NEW |