exvideo

1.0.0 • Public • Published

Exvideo

A HTML5 video player.DEMO

exvideo

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()

NEXT VERSION

support danmaku

Readme

Keywords

Package Sidebar

Install

npm i exvideo

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • liudingyuan