Discover & Rate New Music Check out ChartVote. Promote the music you like.


Flash loadSound auto-play bug in IE

I have a simple mp3 player that I have written in flash 8 that streams an MP3 file. The problem is this: When I view the player in IE and let the mp3 file completely download and reload the page, the sound does not auto-play like it should when using the loadSound() streaming option. This seems to be an issue with IE’s cache. So far I have seen this issue in IE 6 and 7 on multiple machines when the cache is enabled. Firefox and flock work perfectly.

Follow these steps to recreate:
1. Go to http://www.findmotive.com/flashautostart/
2. Let the flash completely download the mp3 (You can tell by the green progress bar)
3. Refresh the page

When you refresh the page the green progress bar should show 100%, but it will not auto-play the MP3. To make it play you have to hit the pause/play button.

If I open the URL in a new window or tab then it will auto-play even when fetching the mp3 from the cache. Let me know if you have a solution to this. If I find the solution I will post it here.


5 Comments

  1. TheKlue on November 6th, 2006

    Maybe you can try avoiding the cache form flash. When you load the mp3 file you can add a unique variable at the end:

    …song.mp3?r=”+ Number (new Date()); //this number always will be unique

    I hope this help you.

    Regards,

    theklue

  2. Axel on November 13th, 2006

    Hey,

    I’m totally having the same issue, let me know of you happen to find a fix….

    axel@cfwebtools.com
    http://axel.cfwebtools.com

    I’m going to keep working on it… i’ll let you know if the above worked

  3. Noah Winecoff on November 13th, 2006

    TheKlue,

    I’m currently using a solution like yours to prevent this bug. Great solution thanks for the comment!

    Axel,
    Thanks, keep me posted and I will do the same. The Random number solution will work as well though.

  4. Greg on December 30th, 2006

    Waaah! This bug has me pulling my hair out!

    Preventing the file from caching (either by rewriting the headers or by fooling the cache with appended filenames) has not solved it for me. IE still fails to auto-play the mp3, even though my setup works perfectly in all other browsers. Gaaaaah!

    Does anybody have any insight on this one?

  5. Greg on December 30th, 2006

    Oh and btw, Noah, your player works for me. I clear the cache, and on the first page load, it starts streaming immediately — yes, in IE! I want it!

    I should add that I have found various mp3s that work in my setup, the only synonymous feature being that they are extremely short clips. Maybe they download so quickly…errrr, doesn’t make sense.

    So of course I have been experimenting with every variation of encoding and id3 tags to no avail.

Leave a Reply

RSS Feed



Recommended Sites