YouTube将http重定向到https并使用Flash Player而不是HTML5

我正在使用嵌入的YouTube来显示视频。 使用IE11(也FF28,但不FF27),当我登录到我的谷歌帐户时,http请求被重定向到https,这是没有什么大不了的,除了即使我指定html5播放器,youtube服务了Flash播放器。

有什么方法来强制HTTP或通过https强制HTML5播放器?

重新创建:登录Google帐户并导航到网址“http://www.youtube.com/embed/u1zgFlCw8Aw?autoplay=1&html5=1”重定向到https和Flash播放器

退出Google帐户并导航到网址“http://www.youtube.com/embed/u1zgFlCw8Aw?autoplay=1&html5=1”留住http并获取html5播放器

提前致谢!


如果您将视频放在沙盒iframe中,并且不特别允许插件,则无法加载flashplayer,因此必须使用html5播放器。 请注意,您必须至少允许同一原点,并且允许脚本或播放不起作用。 如果您希望YouTube视频按钮能够打开视频的YouTube视频页面,则您还需要允许弹出窗口。 请注意,在使用youtube按钮创建的新窗口中,即使通过输入新URL手动导航到其他地方,沙箱仍然有效。

<iframe seamless="" height="100%" width="100%"
  sandbox="allow-same-origin allow-scripts"
  src="http://www.youtube.com/embed/u1zgFlCw8Aw?autoplay=1">
</iframe>
链接地址: http://www.djcxy.com/p/44761.html

上一篇: Youtube redirecting http to https and using flash player instead of HTML5

下一篇: embed html5 youtube video in a lightbox (using fancybox)