开发者

Flash Video with HTML5 fallback using mediaelement.js

开发者 https://www.devze.com 2023-03-29 23:16 出处:网络
Instead of flash 开发者_如何学编程fallback, I need construct my page so that I play Flash video with html5 video as a fallback

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

精彩评论

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