一个HTML5播放器

  • A+
所属分类:编程茶楼

<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
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin

发表评论

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