开发者

Flash Video with HTML5 fallback using mediaelement.js

Instead of flash 开发者_如何学编程fallback, I need construct my page so that I play Flash video with html5 video as a fallback http://mediaelementjs.com/

Any ideas how to do this?


The only case in which you would serve flash to a new browser, and HTML 5 as a 'fallback' is for iOS devices. So try sniffing for iOs devices like in this post: iPad/iPhone browser sniffer with mod_rewrite and redirection; "too many redirections"

Or this one using javascript: http://davidwalsh.name/detect-iphone

When you know you have a modern browser, but no flash support, then use the HTML5 tag.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜