搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

mp4 video in wordpress is not responsive after update

more options

Hi Since updating wordpress to 4.1 my mp4 videos are no longer responsive. see http://theirmustbeaneasierway.com

I thought it was a custom theme issue but now have it on 2015 theme and it still exists.

The site works perfect on all other browsers. It used to work before the update.

Any ideas to correct I's appreciate it.

Hi Since updating wordpress to 4.1 my mp4 videos are no longer responsive. see http://theirmustbeaneasierway.com I thought it was a custom theme issue but now have it on 2015 theme and it still exists. The site works perfect on all other browsers. It used to work before the update. Any ideas to correct I's appreciate it.

所有回覆 (5)

more options

I don't see a problem in Firefox 37.0.1 on Windows 7, other than slow loading, but that might not be meaningful because Firefox uses different MPEG decoders on different platforms.

What version(s) of Firefox did you test in?

more options

Hi jscher, Its 37.0.1 on a macBook Pro.

When you reduce the window size - the video does not reduce. Even after refreshing the page.

more options

Eoinb said

When you reduce the window size - the video does not reduce. Even after refreshing the page.

Oh, is that what you meant by responsive? Sorry, I didn't pick up on that.

You have a fixed width here that isn't changing when the browser width changes:

<div style="width: 660px; height: 371px;" id="mep_0" class="mejs-container svg wp-video-shortcode mejs-video" tabindex="0" role="application" aria-label="Video Player">

You have version 2.16.2 of the media element script. Do you want to try 2.16.4 to see whether that addresses the issue? http://mediaelementjs.com/

more options

Hi , Do I add that script to wordpress?

I have now added a page with width 100% but not working as expected. http://theirmustbeaneasierway.com/page-with-video/

more options

I think the MediaElement.js plugin added the script to your site but I noticed a warning on the page that it is getting old now: https://wordpress.org/plugins/media-element-html5-video-and-audio-player/

I think you might need to manually switch the .js file to the new one, or if you don't have FTP access to do that, you could use the plugin editor to replace the contents of the .js file with the new one (delete the old, paste the new).