OLD | NEW |
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 Loading... |
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 |
OLD | NEW |