How Apple compresses video using JPEG, JSON, and <canvas> →
Why would Apple do something so absurd!? They co-created the h.264 standard, and wrote Safari, so clearly they should know how to do this the “easy way”: use a
<video>element. But the<video>element just won’t work here.<video>elements can only be played fullscreen on iPhone, which kind of ruins the desired effect of this inline video. And on desktop computers, Apple’s website needs to work on all major browsers, but Firefox and Opera won’t support h.264.
Cool hack.