README
Exvideo
A HTML5 video player.
Installation
clone or download the project.Getting Exvideo.min.js in the dist directory.
Maybe you like
npm install --save exvideo
Usage
HTML
<div id="app" class="exvideo"></div>
<script src="/Exvideo.min.js"></script>
JS
var option = {
el: document.querySelector('#app'),
video: 'http://7xsthh.com1.z0.glb.clouddn.com/test-exvideo.mp4'
};
var app = new Exvideo(option);
app.init();
OPTIONS
var option = {
el: document.querySelector('#app'),
autoplay: false,
loop: false,
preload: 'metadata',
video: 'http://7xsthh.com1.z0.glb.clouddn.com/test-exvideo.mp4' //video url
}
MODULE BUNDLER
var Exvideo = require('Exvideo');
var app = new Exvideo(option);
API
- app.init()
- app.play()
- app.pause()
DANMAKU(beta)
Now you can send danmaku :)
This is the danmaku-server source code.