Files
ArtPlayer/README.md
T
2018-11-12 16:00:55 +08:00

757 B

ArtPlayer

ArtPlayer is a modern HTML5 video player

Status

⚠️ This project is WIP and not ready for production use yet!

Demo

Checkout the demo

Install

$ npm install --save artplayer
import Artplayer from 'artplayer';
import 'artplayer/dist/artplayer.css';

OR umd builds are also available

<link rel="stylesheet" href="path/to/artplayer.css">
<script src="path/to/artplayer.js"></script>

Expose the global variable to window.Artplayer.

Usage

<div class="artplayer-app"></div>
var app = new Artplayer({
    container: '.artplayer-app',
    url: 'path/to/video.mp4',
});

Note: You need to initialize a size for the container element.