Hi,

We have a page of audio that is using the audio module.

http://audiofoundation.org.nz/dirtbeneaththedaydream

With all of my Mac browsers everything works fine. However for people using IE7 (and apparently Firefox 3 on Windows) the player will automatically stop playing and revert back to the "stopped" state after a few seconds. The exact time it takes for the clip to automatically stop is different every time, but between 1-5 seconds usually, although sometimes much longer.

This seems to only happen when the player "loses focus", i.e., the user clicks something else on the page soon after clicking the play button, grabs the scroll bar, or starts using another tab, and only affects IE7 and Firefox3 on Windows. Safari and Firefox on Mac seem fine.

The problem also appears to affect only the above page, because we have been using the audio module without problems up until now on the following page

http://audiofoundation.org.nz/audio

But I can't tell what the different would be that would cause one to work properly and one to be buggy.

Luke

Comments

l_d’s picture

Has anyone had any luck in looking at this yet?

l_d’s picture

Bump

lestu’s picture

Seems to be only the XSPF Web Music Player.
The other one, 1pixel, works for me.

l_d’s picture

Writing an update many years later - I found a solution as described on this page:

http://sourceforge.net/tracker/?func=detail&aid=2018279&group_id=128363&...

The problem is a bug in the "XSPF Web Music Player - Button" that you can fix yourself if you have the software to edit Flash files.

Download the "button_player-0.1.zip" file from the SourceForge website http://sourceforge.net/projects/musicplayer/files/musicplayer/button_pla... unzip the file, then follow the instructions on the above link, which I'll also post here in case the link is ever broken:

Date: 2009-09-15 01:45:41 PDT

I had the same problem and I solved it completely using the solution
suggested by 'nobody' some posts below, that I rewrite here:

Open the MusicButton.as file in the folder com/zuardi/musicplayer and
comment out the stopTrack() in lines 424 and 449.

[Note, for me it was lines 423 and 448]

Then open the file musicplayerbtn.fla and publish it as a .swf file. 

I tried this new file in several browser (FF, IE7, Opera, Safari) and works
perfectly, even when a new tab is opened, the music continues to play.

Thank you very much 'nobody', you're post saved many headaches! :) 

Gabriele