2019-04-16 11:11:41 +08:00
2018-11-21 15:18:21 +08:00
2019-04-16 11:04:04 +08:00
2019-04-16 08:38:38 +08:00
2019-04-16 11:04:04 +08:00
2019-04-16 11:11:41 +08:00
2018-12-03 12:46:52 +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
2018-11-23 09:45:36 +08:00
2018-10-10 14:23:06 +08:00
2018-10-10 14:23:06 +08:00
2018-11-21 18:37:25 +08:00
2018-11-30 17:25:48 +08:00
2018-11-21 18:37:25 +08:00
2019-04-16 10:15:41 +08:00
2018-10-08 22:37:51 +08:00
2019-04-16 11:11:41 +08:00
2018-12-05 16:48:16 +08:00
2019-04-16 10:12:11 +08:00
2018-11-21 16:10:56 +08:00

ArtPlayer

Build Status version license size

ArtPlayer is a modern HTML5 video player

Screenshot

Features

  • Support vtt and srt subtitles
  • Support video quality switching
  • Support for custom control, layer, contextmenu, setting
  • Support playback rate, aspect ratio, flip, window fullscreen or web fullscreen adjustment
  • Support integration with other dependencies, like: flv.js, hls.js, dash.js, shaka-player, webtorrent
  • Support chrome native picture-in-picture mode, or custom picture-in-picture mode
  • Support thumbnails and highlight in 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 for custom plugins
  • Support local video preview
  • Support subtitle time offset
  • Support screenshot
  • And more...

Ecosystem

Project Description Demo
artplayer-plugin-danmu Danmu plugin for ArtPlayer WIP
artplayer-plugin-flv Flv plugin for ArtPlayer WIP
artplayer-plugin-gif Gif plugin for ArtPlayer demo
artplayer-tool-thumbnail Thumbnail tool for ArtPlayer demo
artplayer-react React Component for Artplayer demo
artplayer-vue Vue Component for Artplayer demo

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

Checkout the changelog

QQ Group

QQ Group

License

MIT © Harvey Zack

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