• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

What would cause all mp3 songs to play at once when the page opens?

I have a web page with several mp3 song clips. Some people have reported that all the songs play at once when they open the page. I have not been able to replicate the issue. It persists after the page is refreshed also. What could be causing this? It's an html 5 page. Below is a sample of how each song is coded:

<audio controls><source src="music/Song-1.mp3"><embed height="18" width="160" src="music/Song-1.mp3"></audio>
0
weknowjack
Asked:
weknowjack
  • 2
  • 2
1 Solution
 
COBOLdinosaurCommented:
What browser are the users with a problem using?  Post a link to the page so we ca do diagnostics please.

Cd&
0
 
weknowjackAuthor Commented:
IE 8 was one. Not sure about others. Probably not the latest.

http://dallasdoowop.com/dallas_doowop_music.html
0
 
COBOLdinosaurCommented:
Okay the audio tag is HTML5 and IE prior to IE9 are not HTML5 aware.  So any HTML5 tag like audio will produce unpredictable results in old browsers.

To make matters worse the validator reports 44 errors in HTML for a lot of obsolete junk that has been dropped from the HTML5 standard:
http://validator.w3.org/check?uri=http%3A%2F%2Fdallasdoowop.com%2Fdallas_doowop_music.html&charset=%28detect+automatically%29&doctype=Inline&group=0

So you could also run into a problem with modern browsers as well.

You need to clean up the code for a start, and then look at alternative it you are going to support old browsers that almost no one is still using.

Cd&
0
 
weknowjackAuthor Commented:
Well, it did answer my question, but an alternative solution recommendation would have been even more helpful. I found a few on my own using javascript. One is audio.js
I'll try them.
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now