26
GitHub - zhw2590582/ArtPlayer: ArtPlayer is a modern HTML5 video player
source link: https://github.com/zhw2590582/ArtPlayer
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
ArtPlayer
ArtPlayer is a modern HTML5 video player
Features
- Support
vtt
andsrt
subtitles - Support video quality switching
- Support for custom
control
,layer
,contextmenu
,setting
- Support
playback rate
,aspect ratio
,flip
,window fullscreen
orweb 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
andhighlight
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-danmuku Danmuku plugin for ArtPlayer demo artplayer-plugin-gif Gif plugin for ArtPlayer demo artplayer-plugin-backlight Backlight plugin for ArtPlayer demo artplayer-plugin-playlist Playlist plugin for ArtPlayer demo artplayer-tool-thumbnail Thumbnail tool for ArtPlayer demo artplayer-tool-github Github api tool for ArtPlayer demo artplayer-react React Component for Artplayer demo artplayer-vue Vue Component for Artplayer demoDemo
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
QQ Group
License
MIT © Harvey Zack
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK