ActiveDen

Premium XML MP3 Player

When I change pages in my HTML site my music player restarts.

It definitely would! HTML pages are a completely new page every time you change. The idea of using an MP3 to play background music across multiple HTML pages is a flawed idea from the start, each time you change pages you are going to a different page where the swf is loading as a completely new instance. This mp3 player and every other mp3 player in world was not designed to attempt to play music seamlessly across multiple HTML pages.

There are some ways to hack your way around it, but those would involve methods where changing the “page” you’re on does not actually changing the url/page your browser is at. These would be things like using AJAX to just fetch new data and re-write parts of the current page with new content, or using multiple frames where one frame changes and the frame your mp3 player is in doesn’t change. Both of these methods would involve fully understanding either of those technologies and building your site around your mp3 player.

How do I embed this in HTML ?

This is not a question specific to my product (it is a general flash question), and therefore I will not respond to this question on a case by case basis, but I will add a little FAQ to get you started.

First off, embedding of a swf into HTML is best handled via swfobject. It is a 3rd party thing, but it was so well written that even adobe recognizes it as a standard for embedding flash.

Secondly, flash only can show within the size of the rectangle at which you embed it. So if you make your player 400×30 and embed it at 400×30 in your html then when the menu opens the menu will be cut off and not visible. You need to embed it at a size where it will be able to fully open its menu within the flash. This process would be the same as embedding a drop down menu in flash, for which a good resource to learn about this would be a forum thread that touches on the subject here and a google search about displaying transparent flash over HTML will yield lots more info.

I’m having problems with the progress tracking bar being off and disappearing in chrome and safari.

This can actually be caused by buggy embed methods (ironically including the default exported html from flash).

If you use swfobject to embed your swf (which I recommend regardless, it’s easier and better) then this issue will disappear.

by
by
by
by
by