为什么只有youtube嵌入iPad? [英] Why does only youtube embeds work on iPad?

查看:114
本文介绍了为什么只有youtube嵌入iPad?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解为什么youtube嵌入在iPad上工作得很好,而不是任何其他视频网站的嵌入。

I am trying to find out as to why youtube embeds works just fine on iPad, and not the embeds of any other video site.

youtube embed示例:

Example of youtube embed:

<object width="640" height="385">
        <param name="movie" value="http://www.youtube.com/v/DlIU5TgwEFg&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_US&feature=player_embedded&fs=1"></param>
        <param name="allowFullScreen" value="true"></param>
        <param name="allowScriptAccess" value="always"></param>
        <embed src="http://www.youtube.com/v/DlIU5TgwEFg&color1=0xb1b1b1&color2=0xcfcfcf&hl=en_US&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="385"></embed>
</object>

这是因为iPad有一个原生的youtube应用程序,它对youtube嵌入有特殊支持,或者这是由脚本处理的内容由youtube嵌入代码执行,可能会检查用户代理,然后加载HTML5视频播放器,其源代码指向视频的h.264编码版本(就此而言排序可能)?

is this because iPad has got a native youtube app which has special support for youtube embeds, or is this something that is handled by the script that's get executed by the youtube embed code, which might check for the user agent, and then load the HTML5 video player with a source pointing to the h.264 encoded version of the video (is something of this sort possible)?

推荐答案

Youtube链接在iPhoneOS中专门处理。

Youtube links are handled specially in the iPhoneOS.

这是因为有一个 / System / Library / Internet Plug-Ins / YouTubePlugIn.webplugin 来处理这些。

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

HTML5与此无关。

HTML5 is irrelevant here.

这篇关于为什么只有youtube嵌入iPad?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆