Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Problem with mediaelements.js plugin not playing in firefox WordPress


Hi everyone

i'm building a custom design using a template i bought from template monster

i'm using the audio player shortcode which came with the theme. which i believe is actually the or mediaelements.js plugin - i'm using it to play a small intro speech from the owner of the site on the homepage

my problem is that after checking that it plays in ie9, i didn't consider that it wouldn't play properly in firefox, and the client is really happy with how it looks, i dont want to change it unless i have to, i'd rather just get it to play in firefox.. which surprizingly is a real mission.

i tried rolling it back a version because apparently the latest version of the plugin has trouble with firefox but that hasn't done much

please see in both chrome and firefox to see what i mean. the player is on the right hand side

i tried to fix this on wednesday and it took me a whole afternoon and i hav'nt gotten anywhere, i've tried installing it maually but i think the shortcode thats in there is conflicting, i dont have the time to figure it out, please can i ask for help to figure out why its not playing properly



Answers (2)


Kiet Luong answers:

try to deactivate "Better WordPress Minify" plugin on your dashboard. then see if it work.
Regards !

Kiet Luong comments:

how about these :

[[LINK href=""]][[/LINK]]
[[LINK href=""]][[/LINK]]

Mike Peters comments:

Hi Kiet

Thank you so much that solved the problem :)

shoul di even bother running this plugin, it makes my site so much faster though,
but everytime i seem have a problems, the firsth thing people post is disable the Better Wordpress Minify plugin,

is it even worth using?

Thanks again man, much appreciated :)


Naveen Chand answers:

Firefox does not support mp3 in html5 format. See this: [[LINK href=""]][[/LINK]]

However, it plays ogg files in html5.

Your theme is using html5 <audio> element to play mp3 file and therefore firefox will not play it. If you can create the same audio file in ogg format, then the correct syntax is described in the above link which is as follows:

<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.

This type of code is what you can use to play it in firefox but you need to use .ogg version of your audio.

If you don't want to create .ogg file by converting mp3 to ogg, then you could try this second method:
[[LINK href=""]][[/LINK]]

Hope this helps.

Mike Peters comments:

Hi Naveen

Thanks alot for your response,

Yeah i did play with some ogg files but i had problems with them,
but i realise i was usuing the wrong syntax :) i found that article really interesting,
gonna do it likw ethat in the future

Thanks for your help!