Skip to content
Projects

bytedance/xgplayer has 9,312 GitHub stars and 945 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-06 13:05 UTC. Last push 2026-11-06.

How these counts are measured

A HTML5 video player with a parser that saves traffic

Measured star growth

in 24h
+1
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

xgplayer

xgplayer provides a flexible, plugin-based media player for web applications. Its UI components, loading strategies, and format integrations can be composed independently.

Documentation

Installation

npm install xgplayer

Usage

<div id="player"></div>
import Player from 'xgplayer'
import 'xgplayer/dist/index.min.css'

const player = new Player({
  id: 'player',
  url: 'https://s2.pstatp.com/cdn/expire-1-M/byted-player-videos/1.0.0/xgplayer-demo.mp4'
})

See the configuration documentation for additional player options.

Plugins

xgplayer provides built-in UI plugins and optional streaming or feature packages. See the plugin documentation for available integrations.

Development

The repository uses Yarn 1.x. Fixture commands start local demos for each format:

yarn
yarn dev:xgplayer
yarn dev:hls
yarn dev:flv
yarn dev:mp4

Release

See the release guideline for stable and prerelease workflows.

License

By using xgplayer, you agree to the following terms:

  1. xgplayer is licensed under the MIT License.
  2. You authorize the xgplayer project to display the logo of a business using xgplayer on the project website.

Explore related projects