views:

375

answers:

2

I've been asked to develop a website for the iPad. It's going to have a couple videos on it. I'd like to try out html5. I'd really only be using the new video part of html5 (with flash fallback for browsers that don't yet support it). Would it be a mistake to do this on a fairly traffic heavy site?

Edit: The site is for all browsers, but they want a non-flash version created so that it will also work on the iPad. If i have a flash backup for browsers that dont support html5 video will i be ok? Im just not sure if html5 video is ready for traffic heavy sites yet.

+3  A: 

If it's only for the iPad, then yes, go for it.

The major problem with HTML5 video is that there is no agreement over which format to use. At the moment, some browsers support H.264, some support Ogg Theora, some support both, and of course, IE 8 and earlier (and older versions of other browsers) support neither. See Wikipedia for more details.

Edit in light of the question edit: Here's a quote from Steve Jobs' recently posted "Thoughts on Flash":

...almost all this video is also available in a more modern format, H.264, and viewable on iPhones, iPods and iPads. YouTube, with an estimated 40% of the web’s video, shines in an app bundled on all Apple mobile devices, with the iPad offering perhaps the best YouTube discovery and viewing experience ever. Add to this video from Vimeo, Netflix, Facebook, ABC, CBS, CNN, MSNBC, Fox News, ESPN, NPR, Time, The New York Times, The Wall Street Journal, Sports Illustrated, People, National Geographic, and many, many others. iPhone, iPod and iPad users aren’t missing much video.

Given the list of video providers using HTML5 video (because that's how this H.264 video is delivered), I think you'll be fine.

Apple has a list of high profile sites that "iPad ready". Most of these sites use HTML5 video (at least when the iPad is detected). One other thing to keep in mind is that navigation can be different on a mutli-touch device compared with a mouse.

David Johnstone
+1  A: 

Yeah, with caveats:

  1. You’ll want a Flash player to use as a fallback for non-HTML5 browsers (i.e. Internet Explorer 8 and earlier)

  2. You’ll need to encode the videos in Ogg Theora for Firefox, as well as H.264 for everything else. (Your Flash video player should be able to play the H.264 file, no need to separately reencode there.) Firefox might support H.264 one day, but for now, no.

    I suppose this might be an issue for high traffic sites if they use caching for the video files? Because you’d need twice the cache space for your video files? But I’d guess for a high traffic site you’d have a dedicated media server for video, and having two versions of each file wouldn’t make any difference.

You’ll want to read the Dive into HTML5 section on video:

And you might want to look into using or customising one of these HTML5 video players:

Paul D. Waite
I completely agree with also encoding for Ogg Theora. The reason for this is that if you don't do this, you will break your video for Firefox users, as Firefox won't use the Flash fallback if Ogg Theora is unavailable.+1 for the Dive Into HTML5 link.
Jeremy Visser
Ah. That’s somewhat annoying behaviour on Firefox’s part, but for all I know the spec requires it.
Paul D. Waite