Files
ArtPlayer/README.md
T
2018-11-21 15:07:47 +08:00

1.5 KiB

ArtPlayer

version license size

ArtPlayer is a modern HTML5 video player

Alt text

Introduction

TODO...

Demo

Checkout the demo

Document

Checkout the Document

Install

Install with npm

$ npm install artplayer

Or install with yarn

$ yarn add 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>

Will expose the global variable to window.Artplayer.

Usage

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

Ecosystem

Project Description
artplayer-plugin-danmu Danmu plugin for ArtPlayer

License

MIT © Harvey Zack