mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-14 00:06:17 -08:00
9fe5c5d021068f9e5b556e20961a9323f10ace22
ArtPlayer
ArtPlayer is a modern HTML5 video player
Status
⚠️ This project is WIP and not ready for production use yet!
Demo
Introduction
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>
Will 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, like:
.artplayer-app {
width: 400px;
height: 300px;
}
Configuration
API
Issue
Contributors
License
MIT © Harvey Zack
Languages
JavaScript
89%
Less
9.8%
TypeScript
0.7%
Vue
0.3%
HTML
0.1%