youtube嵌入的视频不适用于Safari [英] youtube embed video not working with safari
本文介绍了youtube嵌入的视频不适用于Safari的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有此HTML代码的简单页面:
<iframe width="100%" height="480" src="https://www.youtube.com/embed/5FSsednibXQ?controls=0&showinfo=0" frameborder="0" allowfullscreen=""></iframe>
在chrome中可以正常工作,但在safari中不能正常工作.我只有带野生动物园的黑匣子. 任何的想法 ?在safari中嵌入youtube视频的正确方法是什么?
解决方案
尝试使用此功能:
<object>
<param name="movie" value="http://www.youtube.com/v/[VIDEO_ID]"></param>
<embed src="http://www.youtube.com/v/[VIDEO_ID]" type="application/x-shockwave-flash"></embed>
</object>
在这里解释: 使youtube.com/embed URL在iOS上运行 >
I have a simple page with this HTML code :
<iframe width="100%" height="480" src="https://www.youtube.com/embed/5FSsednibXQ?controls=0&showinfo=0" frameborder="0" allowfullscreen=""></iframe>
It is working fine in chrome but not in safari. I only have the black box with safari. Any idea ? What is the correct way to embed a youtube video in safari ?
解决方案
Try using this:
<object>
<param name="movie" value="http://www.youtube.com/v/[VIDEO_ID]"></param>
<embed src="http://www.youtube.com/v/[VIDEO_ID]" type="application/x-shockwave-flash"></embed>
</object>
It's explained here: Making youtube.com/embed URLs work on iOS
这篇关于youtube嵌入的视频不适用于Safari的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文