一个HTML5播放器

admin 2016年12月23日20:38:38编程茶楼评论1,850 次浏览阅读模式

<head>

  <link href="http://vjs.zencdn.net/5.8.8/video-js.css" rel="stylesheet">

  <!-- If you'd like to support IE8 -->

  <script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"></script>

</head>

<body>

  <video id="my-video" class="video-js" controls preload="auto" width="950" height="533"

  poster="MY_VIDEO_POSTER.jpg" data-setup="{}">

    <source src="http://ob3y15osp.bkt.clouddn.com/2.mp4" type='video/mp4'>

    <source src="MY_VIDEO.webm" type='video/webm'>

    <p class="vjs-no-js">

      To view this video please enable JavaScript, and consider upgrading to a web browser that

      <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>

    </p>

  </video>

  <script src="http://vjs.zencdn.net/5.8.8/video.js"></script>

</body>

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2016年12月23日20:38:38
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/bianchengchalou/2016/1223/7373.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: