1.0.0 • Published 8 years ago

exvideo v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

Exvideo

A HTML5 video player.

npm license

exvideo

DEMO

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.

1.1.0

8 years ago

1.0.0

8 years ago