English 中文(简体)
Is html5 video ready for primetime yet?
原标题:

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.

最佳回答

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.

问题回答

Yes, 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 WebM for Firefox/Chrome/Opera/Android, and H.264 for Safari/IE/iOS/old Android. (And possibly Ogg Theora if Firefox 3.5/3.6 and Opera 10.5 are important to you). Your Flash video player should be able to play the H.264 file, no need to separately re-encode there.

    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:





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签