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".

Learn More

How to install/enable codec for embedded mp4 video?

  • 3 trả lời
  • 6 gặp vấn đề này
  • 31 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

An internal page at work (so unfortunately I can't share a link) just shows "A plugin is needed to display this content" instead of video content. Doing an "Inspect element" shows that the content is an mp4 video in an object tag.

I understand that Firefox should be able to play mp4 video, as long as I have the required codec: https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats

I tried the Windows update files suggested here: https://support.mozilla.org/en-US/questions/1047078 but they would not install on my Windows 7 64-bit system (I get a message that they do not apply to my system).

On the same post, it suggested checking the values of media.windows-media-foundation.enabled and media.directshow.enabled in about:config. The first setting does not exist for me, and the second setting is enabled (set by default). Interestingly, the test site on that page works fine for me ( http://techslides.com/demos/sample-videos/small.mp4 ).

Since the "supported media formats" page specifically mentions H264 encoded MP4 as needing a plugin, I checked my addons page for plugins that need enabling. All are enabled or set to "ask", but there is one plugin that seems relevant, that is permanently stuck on "will be installed shortly" status: the Cisco OpenH264 video codec.

Since this plugin seems like it might be relevant, I tried to find a way to force a manual installation. I tried setting the media.peerconnection.video.h264 setting in about:config as suggested here, but that did not change any behavior as far as I can tell: https://support.mozilla.org/en-US/questions/1047159

I tried downloading the zip file manually from http://ciscobinary.openh264.org/openh264-win32-v1.1-Firefox33.zip and extracting to C:\Users\{myUserName}\appdata\Roaming\Mozilla\Firefox\Profiles\{idOfSomeKind}.default\gmp-gmpopenh264\1.1 as suggested here: https://support.mozilla.org/en-US/questions/1013339

That did not work either. I did not understand the part about media.gmp-gmpopenh264.* prefs; none of those settings exist in my about:config except for media.gmp-gmpopenh264.autoupdate.

The media.gmp-gmpopenh264.provider.enabled option noted on https://support.mozilla.org/en-US/questions/1029174 does not exist.

In case it's not obvious, I did restart Firefox after every about:config change.

How can I convince Firefox to play embedded mp4 video? What plugin do I need and how do I install it, if I need one?

Tất cả các câu trả lời (3)

more options

An <embed> tag and an <object> tag always require a plugin. Firefox will only use the HTML5 media player if an <audio> or <video> tag is used. So it won't help to check the media prefs.

A possible workaround is a bookmarklet to convert the OBJECT to an AUDIO tag.

javascript:(function(){var cE='audio',eE=document.querySelectorAll('object,embed');for(i=0;E=eE[i];i++){N=document.createElement(cE);N.setAttribute('src',E.src||E.data);N.setAttribute('controls','');N.setAttribute('autoplay','true');E.parentNode.replaceChild(N,E)}})()
more options

Thanks for that info! I may try the bookmarklet. If I went with a plugin instead would it be something like QuickTime or DivX I'd be looking for or is there a better option? Do these even work with the removal of NPAPI?

more options

Plugin will no longer work in Firefox if NPAPI support gets removed. Flash might still be supported somehow and there will likely also be a solution for Java. If the content type is supported in the HTML5 media player then that will always stay working.