If you ever tried to build an HTML5 video player from scratch, you might encounter the following problem:
The «oncanplay» event doesn’t fire (the video readystate remains 2 instead of 4 («
HAVE_ENOUGH_DATA»). In my case, Firefox 43.0.4 just woudn’t work.
After hours and hours of frustration I’ve found the rather simple cause of this behavior:
The video’s readystate 4 had been reached even before the eventlisteners where added to the video-object (probably because the video was already cached in the browser in some way or another). When the listeners finally where added, it was too late because the readystate had already jumped back to 2.
The solution is even more simpler: Set the video’s «autoplay» property to «false»:
The readystate will stay where you want it to be (4) and not jump back to 2… Everybody’s happy:)
Slightly better than the first one, but this time the exposure was off …Still learning. But Rammstein must’ve been delivering a great concert as far as I could tell from where I was standing. (And iMovie managed to suck even more balls than yesterday.)
Disclaimer: I just replaced the first video with a second, hopefully better version, with less picture brightening, the original aspect ratio, different sound and in 4k resolution.
How the new Header Pic was made:
Another «gem» back from 2004: Based on some cel animation exercises in art school: «Dust’n’Air»
10 years ago, I produced one of my first (stupid) videos (with lots of copyrighted material). Wouldn’t be the last.
I give you: «March of the Penguins II»
Fun fact (which makes this badly aged clip somewhat interesting): As I later found out, this video may have been intended to be pure nonsense, but there is (was?) a thriving penguin population on the Falkland Islands because «penguins aren’t heavy enough to set off the mines [back from the Falkland Islands War], but because sheep and humans are, the little guys have the minefields all to themselves» (Source)