Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 715 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 715 Bytes

WS Video Player


Quick start

<div id="video-player"></div>

<script src="./dist/ws-video.js></script>
<script type="text/javascript">
  window.onload = function() {
    var container = document.querySelector('#video-player')
    new WSVideoPlayer(container, {
      src: 'http://ocphdh79p.bkt.clouddn.com/be3edbea13dd99f485f5e3ad3d15579c.mp4',
      poster: 'http://ocphdh79p.bkt.clouddn.com/cheap-thrills.png',
      autoPlay: false,
      loop: false
    })
  }
</script>

Screen Shot

shot

About options

Dev

$ npm install

$ npm run dev

$ npm run build (for production)