audiojs icon indicating copy to clipboard operation
audiojs copied to clipboard

Autoplay plays a given mp3 file twice simultaneously, one can't be stopped

Open d-free opened this issue 10 years ago • 6 comments

If the parameter "autoplay" is present, the track will be played twice over itself.

Thus clicking pause will correctly pause 1 of the tracks, the 2nd remains un-pausable, resulting in an unpleasant dissonance if resumed.

Happens in Firefox.

d-free avatar Nov 28 '13 09:11 d-free

Same for me.

fspade avatar Dec 07 '13 10:12 fspade

Same here, any known workaround?

nirvn avatar Jan 05 '14 07:01 nirvn

Well, ich used the html audio tag instead: http://www.w3schools.com/tags/tag_audio.asp

fspade avatar Jan 05 '14 08:01 fspade

If you don't add autoplay to the HTML but add it in the audio.js file (it's in the settings part) and change it to true, the audio will autoplay fine.

I seem to only get this when playing from an iframe.

joshkrz avatar Feb 13 '14 22:02 joshkrz

I was having this problem in the latest version of Firefox (31). It sounds like the audio file is played 3 or 4 times, and only 1 of them is controlled. I changed the settings line as mentioned by joshkrz, but I also had to change this line: if(b.getAttribute("autoplay")!=null) to say: if(b.getAttribute("autoplay")!="y")

("y" is a value that it will never be, so it will always autoplay.)

AshtonSanders avatar Aug 26 '14 22:08 AshtonSanders

I had the same issue with firefox I Took out the attributes autoplay and autoload and created the instance with the options autoplay:true and autoload:"auto" Ex.: audiojs.events.ready(function() { audiojs.createAll({ autoplay:true, autoload:"none" }); }); ...tags....

superpancho avatar Sep 13 '14 17:09 superpancho