Skip to content

Repository files navigation

ArtPlayer

Build Statusversionlicensesizenpm DownloadsPRs WelcomeCodacy Badgedependencies Status

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

ProjectDescriptionDemo
artplayer-plugin-danmukuDanmuku plugin for ArtPlayerdemo
artplayer-plugin-gifGif plugin for ArtPlayerdemo
artplayer-plugin-backlightBacklight plugin for ArtPlayerdemo
artplayer-plugin-playlistPlaylist plugin for ArtPlayerdemo
artplayer-plugin-blurBlur plugin for ArtPlayerdemo
artplayer-tool-thumbnailThumbnail tool for ArtPlayerdemo
artplayer-tool-githubGithub api tool for ArtPlayerdemo
artplayer-reactReact Component for Artplayerdemo
artplayer-vueVue Component for Artplayerdemo

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
importArtplayerfrom'artplayer';import'artplayer/dist/artplayer.css';

Or umd builds are also available

<linkrel="stylesheet" href="path/to/artplayer.css" /><scriptsrc="path/to/artplayer.js"></script>

Will expose the global variable to window.Artplayer.

Usage

<divclass="artplayer-app"></div>
varart=newArtplayer({container: '.artplayer-app',url: 'path/to/video.mp4',});

Changelog

Checkout the changelog

QQ Group

QQ Group

License

MIT © Harvey Zack

About

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

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages