为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Video Not Playing on My Website

  • 6 个回答
  • 1 人有此问题
  • 16 次查看
  • 最后回复者为 cor-el

more options

I have a website- www.1stopnonprofitshop.com and the video I uploaded plays fine in Chrome but won't play in Firefox. It says "A Plugin is needed to display this content." Do you know how I can fix it so the video plays?

I have a website- www.1stopnonprofitshop.com and the video I uploaded plays fine in Chrome but won't play in Firefox. It says "A Plugin is needed to display this content." Do you know how I can fix it so the video plays?
已附加屏幕截图

所有回复 (6)

more options

That is because you use an embed element to open an HTML file. opening an HTML file via embed is not working in Firefox. You need to use an object or iframe to embed a media player this way.

You can test this with a bookmarklet in the Web Console (Firefox/Tools > Web Developer).

javascript:(function(){var cE='iframe',eE=document.querySelectorAll('embed');for(i=0;E=eE[i];i++){N=document.createElement(cE);for(j in E.attributes){A=E.attributes[j];if((A.name!=undefined)&&(A.value!=undefined)){N.setAttribute(A.name,A.value)}}E.parentNode.replaceChild(N,E)}})()

See:


<iframe src="//www.youtube.com/embed/S6TVagigP8o?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" height="300" width="450"></iframe>
more options

So if I post that link you gave me that starts with <iframe src= it should play properly? I loaded some plugin and now it seems to be playing on Firefox the way I had it coded previously...but not sure if it will work for everyone using Firefox.

由cor-el于修改

more options

Not sure why the above posted so weird. So if I post that link you gave me above then it should play ok? I loaded some plugin and it seems to work now the way I had it before, but not sure if it will work for everyone.

more options

It went wrong in the above post because of the <iframe. You would have the escape the < as &lt; to avoid such issues.

As long as you use an OBJECT tag and not EMBED then it should always work OBJECT can play a direct media file (e.g. .mp4 link) or embed the media player in case you use an HTML YouTube link. To embed a YouTube link that is actually an HTML file then best is to use the above mentioned IFRAME to embed this media file.

more options

I changed it to the code you gave me, but it's still not working. Can you check if you can view the video on my site (www.1stopnonprofitshop.com) on Firefox? I am able to view the video on Firefox on the computer I downloaded a plugin for...so I'm not sure if my plugins are just outdated. I just worry this will happen to others who try to view my website from Firefox.

more options

It works for me on that test site.

  • http://www.1stopnonprofitshop.com/
<iframe src="//www.youtube.com/embed/S6TVagigP8o?rel=0&controls=0&showinfo=0" frameborder="0" height="300" width="450"></iframe>

Did you check via the Lego block icon on the at the left end of the location bar that the Flash plugin is enabled?


You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)

由cor-el于修改