These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:11 pm Advanced search

<audio> not working in FF but fine in Chrome/Safari

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

<audio> not working in FF but fine in Chrome/Safari

Postby slothmister » Tue Oct 19, 2010 8:13 am

I am trying to develop a simple audio page for my website.

www.kevinroseworld.com/Music.aspx

It works fine in Chrome and Safari but not in Firefox. However, when I go to w3c schools the <audio> element works fine.

http://www.w3schools.com/html5/tryit.as ... tml5_audio

I have tried everything I can think of, even changing the code so it is identical (except the name of the .ogg file ofc) to that supplied on the w3c site.

www.kevinroseworld.com/Music2.aspx

Can anyone suggest why this is not working?
slothmister
<h6>
 
Posts: 7
Joined: Tue Oct 19, 2010 8:06 am

Postby zcorpan » Tue Oct 19, 2010 9:54 am

zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby zcorpan » Tue Oct 19, 2010 9:57 am

Actually it seems like your Ogg files are giving 404s.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby slothmister » Tue Oct 19, 2010 10:11 am

Yes I saw that link, thats basically what made me post my own topic, while it is VERY similar to my problem it is also very different.

As for the 404's thats VERY strange.

I do not get any when viewing www.kevinroseworld.com/music.aspx in chrome but in firefox I get the 404's.

Any idea why this is? I know 404 is basically file not found, but why would firefox have problems when chrome does not?
slothmister
<h6>
 
Posts: 7
Joined: Tue Oct 19, 2010 8:06 am

Postby zcorpan » Tue Oct 19, 2010 11:51 am

Chrome supports MP3, so it would use the second <source>, while Firefox only supports Ogg (and WebM).
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby slothmister » Tue Oct 19, 2010 11:53 am

zcorpan wrote:Chrome supports MP3, so it would use the second <source>, while Firefox only supports Ogg (and WebM).


Ye I am aware of this, however I have both mp3 and ogg as my source files. So this does not help me.

Been looking into it and looks like firefox might not support the <audio> tag all on its own (ie needs more to get it to work) but if that is the case then why does the w3cschools player work fine??
slothmister
<h6>
 
Posts: 7
Joined: Tue Oct 19, 2010 8:06 am

Postby zcorpan » Tue Oct 19, 2010 12:00 pm

slothmister wrote:Ye I am aware of this, however I have both mp3 and ogg as my source files. So this does not help me.
It explains why chrome plays the audio but firefox not if the ogg files are missing.

slothmister wrote:Been looking into it and looks like firefox might not support the <audio> tag all on its own (ie needs more to get it to work) but if that is the case then why does the w3cschools player work fine??
Firefox supports <audio> fine as far as I know. The only problem I see is that the ogg resources are 404s (not only in firefox but also e.g. if you try typing in http://www.kevinroseworld.com/Music/Oka ... anRora.ogg in http://rexswain.com/httpview.html ). I see that the ogg files are listed in the directory listing at http://www.kevinroseworld.com/Music/OkaVanga/OkaVanga/ so I don't know why the server gives 404...
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby slothmister » Tue Oct 19, 2010 12:03 pm

Ahhhh

Thank you for spotting this. I now have a new angle of attack :)

It could be a permissions thing.

Thank you again
slothmister
<h6>
 
Posts: 7
Joined: Tue Oct 19, 2010 8:06 am

Problem fixed

Postby slothmister » Tue Oct 19, 2010 3:17 pm

Thank you for your help.

Further digging indicated a problem with the files themselves. They were lacking a MIME type.
slothmister
<h6>
 
Posts: 7
Joined: Tue Oct 19, 2010 8:06 am

Re: <audio> not working in FF but fine in Chrome/Safari

Postby fairyanna » Sat Jan 03, 2015 11:22 am

onclick is a JavaScript event, counting how long the mouse button is active is also a JavaScript event. This has nothing to do with HTML as far as I can see.


___________________________
Lily lara
fairyanna
<h6>
 
Posts: 1
Joined: Sat Jan 03, 2015 11:14 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest