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

Side by Side Diff: LayoutTests/media/video-capture-preview.html

Issue 169223003: Fire canplaythrough after play and playing when autoplaying (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: style Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML"> 1 <!DOCTYPE HTML">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src=media-file.js></script> 4 <script src=media-file.js></script>
5 <script src=video-test.js></script> 5 <script src=video-test.js></script>
6 <script src=video-played.js></script> 6 <script src=video-played.js></script>
7 7
8 <script type="text/javascript"> 8 <script type="text/javascript">
9 9
10 var previewURL = ""; 10 var previewURL = "";
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 consoleWrite("request access to local media"); 48 consoleWrite("request access to local media");
49 navigator.webkitGetUserMedia({video:true}, gotStream, gotStreamFailed); 49 navigator.webkitGetUserMedia({video:true}, gotStream, gotStreamFailed);
50 } catch (e) { 50 } catch (e) {
51 consoleWrite("getUserMedia error " + "(" + e.name + " / " + e.message + ")"); 51 consoleWrite("getUserMedia error " + "(" + e.name + " / " + e.message + ")");
52 } 52 }
53 53
54 waitForEvent("error"); 54 waitForEvent("error");
55 waitForEvent("loadstart"); 55 waitForEvent("loadstart");
56 waitForEvent("loadeddata"); 56 waitForEvent("loadeddata");
57 waitForEvent("canplay"); 57 waitForEvent("canplay");
58 waitForEvent("play");
58 waitForEvent("canplaythrough"); 59 waitForEvent("canplaythrough");
59 waitForEvent("play");
60 } 60 }
61 61
62 </script> 62 </script>
63 </head> 63 </head>
64 64
65 <body onload="playPreview()"> 65 <body onload="playPreview()">
66 <video width="320" height="240" autoplay="autoplay"></video> 66 <video width="320" height="240" autoplay="autoplay"></video>
67 </body> 67 </body>
68 </html> 68 </html>
69 69
OLDNEW
« no previous file with comments | « LayoutTests/media/autoplay-expected.txt ('k') | LayoutTests/media/video-capture-preview-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698