Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Video Not Playing on My Website

  • 6 trả lời
  • 1 gặp vấn đề này
  • 16 lượt xem
  • Trả lời mới nhất được viết bởi 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?
Đính kèm ảnh chụp màn hình

Tất cả các câu trả lời (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.

Được chỉnh sửa bởi cor-el vào

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)

Được chỉnh sửa bởi cor-el vào