Xgplayer
A HTML5 video player with a parser that saves traffic
Install / Use
/learn @bytedance/XgplayerREADME
Introduction
xgplayer is a web video player library. It has designed a separate, detachable UI component based on the principle that everything is componentized. More importantly, it is not only flexible in the UI layer, but also bold in its functionality: it gets rid of video loading, buffering, and format support for video dependence. Especially on mp4 it can be staged loading for that does not support streaming mp4. This means seamless switching with clarity, load control, and video savings. It also integrates on-demand and live support for FLV, HLS, and dash. Document
Start
-
Install
$ npm install xgplayer -
Usage
Step 1:
<div id="vs"></div>Step 2:
import Player from 'xgplayer'; const player = new Player({ id: 'vs', url: 'http://s2.pstatp.com/cdn/expire-1-M/byted-player-videos/1.0.0/xgplayer-demo.mp4' })This is the easiest way to configure the player, then it runs with video. For more advanced content, see the plug-in section or documentation. more config
Plugins
xgplayer provides more plugins and supports custom plugins, for more content viewing plugins. There are many built-in plugins in the player, if you need to close specific plugins, you can disable them by ignores configuration
Dev
In order to debug by developers, we provide demos code in the fixtures directory of the repo. The player uses yarn for package management, and it only takes a few simple steps to start debugging in the repo
$ cd xgplayer
$ yarn
$ yarn dev:xgplayer
To debug other plugins, please refer to the scripts command provided in package.json in the root directory of the repo, such as:
$ yarn dev:hls
$ yarn dev:flv
$ yarn dev:mp4
Release
For the stable release flow, prerelease flow, and release commands, see Release Guideline.md.
License
Welcome to use xgplayer! Please read the following terms carefully. Using xgplayer means that you accept and agree to the terms.
- Xgplayer is licensed under the MIT License. You comply with its obligations by default.
- By default, you authorize us to place your logo in xgplayer website, which using xgplayer. If you have any problem, please let us know.
Related Skills
docs-writer
99.3k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
338.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
ddd
Guía de Principios DDD para el Proyecto > 📚 Documento Complementario : Este documento define los principios y reglas de DDD. Para ver templates de código, ejemplos detallados y guías paso
zola-ai
An autonomous Solana wallet agent that executes payments via Twitter mentions and an in-app dashboard, powered by Claude.
