YouTube嵌入不工作在Firefox [英] Youtube embed not working in firefox

查看:105
本文介绍了YouTube嵌入不工作在Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我嵌入了三个Youtube视频,它们在除Firefox之外的所有浏览器都能正常工作。

I have Embedded three Youtube videos, they work perfectly in ALL BROWSERS except Firefox.

尝试清除服务器端的缓存,清除Cookie&尝试了18台不同的电脑,尝试过Windows 7,Windows 8,Linux Ubuntu 12.10,Fedora 16,Mac OSX,iOS,Android 4.0.3。尝试从7到15的Firefox版本。

Tried clearing cache on server side, cleared cookies & cache locally, tried 18 different computers, tried Windows 7, Windows 8, Linux Ubuntu 12.10, Fedora 16, Mac OSX, iOS, Android 4.0.3. Tried Firefox versions 7 through 15.

甚至尝试从头开始重做网站。

同样的问题在周围...视频不会在Firefox中加载,仅限Firefox。

Even tried redoing website from scratch.
Same problem all around... Videos do not load in Firefox and Firefox only.

我做错了什么?

在IRC上询问,在论坛上发布了问题,但没有成功。

I have looked all over, asked around on IRC, posted questions in forums but no luck.

我甚至试过了老的 youtube嵌入代码。 Vimeo嵌入iframe工作得很好!

I have even tried the old youtube embed codes. Vimeo embed iframes work perfectly fine!

我的代码如下: http:// pastebin。 com / T3w09bqW

- 注意:中间视频使用的是旧版YouTube嵌入代码 .-

My code is as follows: http://pastebin.com/T3w09bqW
--Note: the middle video is using the old youtube embed code.--

这是一张图片。

推荐答案

在网站上找到它希望它有帮助:

Found this on a website hope it helps:

似乎只有当youtube显示Flash版本的视频时才会出现问题,而与html5它的作品。
您可以强制YT为html5版本的视频添加iframe嵌入代码:html5 = 1

Seems that the problem occurs only when youtube shows the flash version of video, while with html5 it works. You can force YT to serve the html5 version of the video adding this to the iframe embed code: html5=1

<iframe src="http://www.youtube.com/embed/_VIDEO_ID_?html5=1" [...]></iframe>

请考虑一下,如果Firefox的视频的html5版本不存在,那么YT会提供Flash视频作为后备。
所以这个问题肯定与Flash有关。

Consider also that if the html5 version of the video for Firefox is not present, YT serves however the flash video as fallback. So the issue is surely related with flash.

// edit changed& html5 = 1 to?html5 = 1

//edit changed &html5=1 to ?html5=1

这篇关于YouTube嵌入不工作在Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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