我有一个视频页面和许多播放列表文件。
问题是我不知道如何使 JWplayer 的“文件”参数成为变量,以便它可以读取我的任何播放列表文件。我已经研究过并且有关于 flashvars 和查询字符串的这个和那个,但我是新手,不明白它是如何完成的。
查询字符串是正确的方法,还是有更好的方法?
<script type="text/javascript">
jwplayer('container').setup({
'file': 'playlist/0000001.xml',
'flashplayer': 'player/player.swf',
'skin': 'skins/glow.zip',
'width': '640',
'height': '600',
'controlbar': 'bottom',
'playlist.position': 'bottom',
'playlist.size': '240'
});
</script>