如何在网页中加载JWPlayer

时间:2013-09-07 07:00:58

标签: html5 video jwplayer

我有页面我想在JWPlayer中播放视频这里是我使用的代码,我从网上获取

     <script type="text/javascript" src="/jwplayer/jwplayer.js"></script>

     <video height="270" width="480" id="myVideo">
     <source src="/static/bunny.mp4" type="video/mp4">
     <source src="/static/bunny.webm" type="video/webm">
     </video>

    <script type="text/javascript">
     jwplayer("myVideo").setup({
     modes: [
    { type: 'html5' },
    { type: 'flash', src: '/jwplayer/player.swf' }
    ]
    });
  </script>

它没有显示任何内容以及从何处获取jwplayer / jwplayer.js

1 个答案:

答案 0 :(得分:1)