2021-11-27 18:07:04 +08:00
2021-11-26 13:46:37 +08:00
2021-11-24 14:07:39 +08:00
2021-11-27 18:07:04 +08:00
2021-11-24 11:41:08 +08:00
2020-05-21 10:13:03 +08:00
2019-04-15 14:14:08 +08:00
2018-11-21 18:37:25 +08:00
2018-12-04 14:14:15 +08:00
2021-11-24 11:41:08 +08:00
2018-10-10 14:23:06 +08:00
2021-11-24 14:07:39 +08:00
2018-11-21 18:37:25 +08:00
2021-11-24 11:41:08 +08:00
2018-10-08 22:37:51 +08:00
2021-11-24 11:41:08 +08:00
2021-11-24 16:25:34 +08:00
2019-06-26 15:29:16 +08:00

ArtPlayer.js

🎨 ArtPlayer.js is a modern and full featured HTML5 video player

version license size npm Downloads

Screenshot

Features

  • Size - 27kB minified and gzipped
  • Subtitle - Support for .VTT, .ASS and .SRT formats
  • Customizable - Right Click Menu, Business Layer, Video Controller and Settings Panel
  • Controller - Quality Switch, Subtitle Switch, Play Speed, Aspect Ratio, Video Flip, Fullscreen, Picture In Picture, Screenshot, Thumbnail, Adaptive Size, Highlight and Hotkey...
  • Built-in - Open Local Subtitles, Open Local Video, Mini Progress Bar, Network Detection and Subtitle Time Offset
  • Integration - Easy to integration with other dependencies: flv.js, hls.js, dash.js, shaka-player, webtorrent...
  • Code - Vanilla ES6 and SASS, Highly decoupled code, clear structure, easy to track bugs and add new features
  • Document - Detailed interface documentation and rich code demo
  • API - Rich interface and response events, easy to interface with business or custom plugin
  • I18N - support for internationalization of controls

Homepage

https://artplayer.org

Mobile Demo

mobile

Document

https://artplayer.org/document

Install

Install with npm:

$ npm install artplayer

Or install with yarn:

$ yarn add artplayer
import Artplayer from 'artplayer';

Or umd builds are also available:

<script src="path/to/artplayer.js"></script>

Or from jsDelivr CDN:

<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/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',
});

Contribution

Installation dependency:

$ npm install && npm run bootstrap

Run the developer mode and select the project you want to develop:

$ npm run dev

Open web server:

$ npm start

Donations

We accept donations through these channels:

pay

QQ Group

QQ Group

License

MIT © Harvey Zack

Languages
JavaScript 89%
Less 9.8%
TypeScript 0.7%
Vue 0.3%
HTML 0.1%