2010-05-22 56 views
0

我問在這個環節問題;XSPF網絡音樂播放器,並在重新開始網上衝浪音樂

Streaming music background

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

我加入這個播放器,一個簡單的PHP fonction。 Palyer工作完美,但當頁面改變時,音樂重新開始。我希望我會繼續。 代碼有什麼問題?

回答

2

更新:啊,所以你其實都是使用播放器與autoresume功能。那麼,turn on the autoresume,將雅?

默認情況下,autoresume是關閉的。要打開它,你需要& autoresume = 1添加到播放器URL的末尾,如下所示:[...]

老答案:

我怕我認爲你得到了這個錯誤。另一個問題的回答者是在談論在Flash中創建整個站點,這可以讓你有連續的背景音樂。

這是不容易得到一個HTML頁面上連續音樂。查看this question的一些指針。

+0

在上面的鏈接的問題,是我的問題以及有關在現場加continus音樂。 http://www.boutell.com/xspf/ – Felicita 2010-05-22 18:10:21

+0

@Felicita你沒有開啓autoresume,對嗎? 自動播放= 1&autoresume = 1個 感謝佩卡: – 2010-05-22 18:13:39

+0

我與解決 – Felicita 2010-05-22 18:19:20