2012-06-25 41 views
0

我有一個普通的Flash視頻播放器,我可以成功播放一個視頻。不過,我有3個不同的視頻需要依次播放這個視頻播放器。試圖在一個Flash視頻播放器上按順序播放多個視頻?

我一直無法弄清楚如何使用普通的HTML(這不是很難在HTML5)做到這一點?歡迎任何建議。謝謝!

+0

當你說你有一個Flash視頻播放器時,你的意思是你正在使用Strobe,或者你是使用OSMF構建一個,還是你自己製作NetConnection和NetStreams。 基本上:你有權訪問玩家的動作或者你是否擁有.swf? –

+0

我只有我相信的.swf。 – JuliaC

+0

這很有趣。你在swf背後的開發人員的前瞻性思維的擺佈之下。我格格不入。我相信這是流媒體播放器支持開箱即用的播放列表。 –

回答

0

如果你不具備的.fla源文件,那麼你可能要考慮其他第三方解決方案,如Flow PlayerJWPlayer

編輯:According to the JWPlayer docs

repeat (none) 
What to do when the mediafile has ended. Has several options: 

none: do nothing (stop playback) whever a file is completed. 
list: play each file in the playlist once, stop at the end. 
always: continously play the file (or all files in the playlist). 
single: continously repeat the current file in the playlist. 

所以當您在javascript中初始化它,將重複參數添加到您現有的.setup()調用中:

jwplayer('mediaplayer').setup({ 
    'flashplayer': 'player.swf', 
    ... 
    'repeat': 'always', 
    ... 
    'id': 'playerID', 
    ... 
+0

我正在使用JW播放器 – JuliaC

+0

如何格式化列表? – JuliaC

+0

另外,我沒有.setup()調用.. – JuliaC