video-js采用的是html5播放器。

在不支持html5的浏览器会自动切换成flash。

video-js的官网http://www.videojs.com/

看看下载的demo就知道个大概了。

不过在ie9上某些视频流会出问题。

不过加上:

<!--[if lt IE 9]>
<script src="${resSys}/html5.js" type="text/javascript"></script>
<![endif]-->

我是这么写的。

引入样式和js

<link href="${base}/thirdparty/video-js/video-js.css" rel="stylesheet" type="text/css">
  <script src="${base}/thirdparty/video-js/video.js"></script>

播放器:

<video >supports HTML5 video</a></p>
  </video>

${base}是我的项目路径,请大家自行更改。

 

亲测chorme,360,ie7,ie8,ie9,可用支持flv,mp4。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2021-12-04
  • 2021-04-07
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-04-22
  • 2021-11-27
相关资源
相似解决方案