Why does only youtube embeds work on iPad?

回眸只為那壹抹淺笑 提交于 2019-12-03 12:41:36

Youtube links are handled specially in the iPhoneOS.

This is because there is a /System/Library/Internet Plug-Ins/YouTubePlugIn.webplugin to handle these.

HTML5 is irrelevant here.

The iPad does not support flash which your embed is. So... I'm guessing youtube is serving a video instead of a flash file in the case of an iPad/iPhone/iWhatever.

YouTube has HTML 5 version (http://www.youtube.com/html5) and iPad doesn't support flash.

You could use something like SWFObject to embed your video with a Flash player, and if it fails, replace that embed with an HTML5 video tag instead.

Latest Iframe embed code is working perfect on iphone.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!