tags:

views:

82

answers:

1

I asked a question in this link;

Streaming music background

function music(){
   $txt = '<object type="application/x-shockwave-flash"
   data="http://***.com/slim.swf?&amp;autoplay=true&amp;repeat=true&amp;shuffle=true&amp;song_url=http:  //***.com/music.mp3&" 
width="200" height="20">
   <param name="movie" 
  value="http://***.com/slim.swf?&amp;autoplay=true&amp;repeat=true&amp;shuffle=true&amp;     song_url=http://***.com/music.mp3&amp;" />
      <img src="noflash.gif" 
         width="0" height="0" alt="" />
     </object>';
    echo $txt;
  }

I have added this player with a simple php fonction. Palyer working perfect but when page changes, the music restarts. I want that I will be continued. What is wrong in code?

+2  A: 

Update: Ah, so you are in fact using a player with an autoresume function. Well, then turn on the autoresume, will ya?

By default, autoresume is off. To turn it on, you need to add &autoresume=1 to the end of the player URL, as shown here: [...]

Old answer:

I'm afraid I think you got this wrong. The answerer in the other question was talking about creating a whole site in Flash, something that would enable you to have continuous background music.

It's not easy to get continuous music on a HTML page. Check out this question for some pointers.

Pekka
@pekka;The question in above link, is my question and about adding continus music in site.http://www.boutell.com/xspf/
Felicita
@Felicita you are not turning autoresume on, are you?
Pekka
Felicita