ArtPlayer.js is a browser video player library with configurable controls, subtitle formats, and optional streaming plugins.
Overview
ArtPlayer.js is an HTML5 video player you embed in web pages. Most control features can be customized so the player can follow your own UI and business logic.
It reads .vtt, .ass, and .srt subtitles directly. You can integrate streaming helpers such as flv.js, hls.js, and dash.js when you need those formats. The codebase is split into modules so you can extend behavior or track issues in isolated areas.
Install via npm, yarn, pnpm, bun, a UMD build, or CDN; the UMD build exposes a global Artplayer object. Separate plugins add danmuku, HLS or DASH quality controls, VTT thumbnails, Chromecast, advertising, chapters, ASS subtitles, and other playback features.
An online editor, API docs, and mobile demo are published for trying the player outside your own project.
Key features
- Customizable player controls
- VTT, ASS, and SRT subtitles
- HLS, DASH, and FLV integrations
- Danmuku and thumbnail plugins
- Quality and chapter plugins
- Screenshot and context menu support
- npm and CDN distribution
- Chromecast and ad plugins
Use cases
- Custom web video sites
- Bullet-comment video playback
- Adaptive streaming pages
- Multi-subtitle video players