These days, to build websites (including those that can be viewed on an iPad), developers are encouraged to use HTML5. I've already mentioned the fact that I've started to play around with HTML5, to see how it feels from a developer's viewpoint. What I've done, for the moment, is to build a website that displays the following little movie (shot by Natacha last summer, and included here in its YouTube version):
To view this video in the context of my website, you'll need to use a modern browser such as Chrome, Firefox or Safari.

To obtain this "complete solution", I've built three different versions of the video:
— For Safari, there's an H264 video file. This solution makes it possible to view my video on an iPad. For the moment, H264 seems to be the only format accepted by Apple.
— For Firefox, there's an Ogg video file. Normally, Firefox should be capable of handling Google's WebM format (which was recently accepted as a standard by the Free Software Foundation), but this doesn't seem to be the case yet.
— As for Google's powerful and elegant Chrome browser, it can accept either H264, Ogg or WebM.
To examine my code for the video tag, simply display the source code of the page with the movie.
Incidentally, when I speak of having built three different video files, I'm exaggerating a little. The original movie is an .mp4 file, fresh out of my camcorder and Final Cut Express. That's the version that works with the H264 codec. To obtain the Ogg and WebM versions, I used a delightful little free Mac app named Miro Video Converter.


No comments:
Post a Comment