试图在一个Flash视频播放器上依次播放多个视频?

时间:2012-06-25 19:06:22

标签: html html5 flash html5-audio

我设置了常规的Flash视频播放器,我可以成功播放一个视频。但是,我需要在这个视频播放器上按顺序播放3个不同的视频。

我无法弄清楚如何使用常规HTML(在HTML5中不是很难)?欢迎任何建议。

1 个答案:

答案 0 :(得分: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中对其进行初始化时,请将repeat arg添加到现有的.setup()调用中:

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