mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
5f67ddf9833e6b0b869c783f3fa4e912173ffd74
ArtPlayer
ArtPlayer is a modern HTML5 video player
Features
- Support integration with other dependencies, like:
flv.js,hls.js,dash.js,shaka-player,webtorrent - Support
playback rate,aspect ratio,flip,window fullscreenorweb fullscreenadjustment - Support chrome native picture-in-picture mode, or custom picture-in-picture mode
- Support for custom
control,layer,contextmenu,setting - Support
thumbnailsandhighlightin the progress bar - Support to maintain the original video ratio, adaptive size
- Support rich custom event monitoring, easy to expand
- Support for internationalization of controls
- Support
vttandsrtsubtitles - Support video quality switching
- Support for custom plugins
- Support
screenshot - And more...
Demo
Checkout the demo from Github Pages
Document
Checkout the Document from Github Pages
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',
});
Changelog
Ecosystem
| Project | Description |
|---|---|
| artplayer-plugin-danmu | Danmu plugin for ArtPlayer |
| artplayer-plugin-subtitle | Subtitle plugin for ArtPlayer |
QQ Group
License
MIT © Harvey Zack
Languages
JavaScript
89%
Less
9.8%
TypeScript
0.7%
Vue
0.3%
HTML
0.1%

