JW Player 播放动态指定的文件

<script type='text/javascript'>
   function playFlv(obj)
   {
      jwplayer('container').setup({
           flashplayer: "jwplayer/player.swf",
           file: obj.innerText,
           autostart: true,
           height: 270,
           width: 480
      });
      jwplayer().play();
   }
</script>

<td><a onclick="playFlv(this);">uploads/video.mp4</a></td>

 

你可能感兴趣的:(play)