var myVid = document.getElementById("movie");
myVid.onloadeddata = console.log("Browser has loaded the current frame");
It does not do what you expect. You do not bind the function to myVid.onloadeddata, you immediately execute console.log()and set the return value for myVid.onloadeddata.
The correct way to do this is:
myVid.onloadeddata = function() {
console.log("Browser has loaded the current frame");
}
So this explains why it outputs something in your console.
On loadeddata:
Definition loadeddata:
.
: " ".
Firefox :
Specified "type" attribute of "video/mp4" is not supported. Load of media resource fliege.mp4 failed.
HTTP load failed with status 404. Load of media resource http://www.x.opteynde.com/fliege.ogv failed.
All candidate resources failed to load. Media load paused.
, Firefox , , 404 .
P.S.
, loadeddata , "play".