Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Xgplayer | 6,177 | 12 | 55 | 6 days ago | 1,075 | September 22, 2022 | 32 | mit | JavaScript | |
A HTML5 video player with a parser that saves traffic | ||||||||||
Chimee | 2,106 | 18 | 20 | 3 years ago | 68 | June 15, 2020 | 30 | mit | JavaScript | |
a video player framework aims to bring wonderful experience on browser | ||||||||||
Fijkplayer | 1,435 | 1 | 3 | a month ago | 49 | November 30, 2021 | 194 | mit | Dart | |
ijkplayer for flutter. ijkplayer 的 flutter 封装。 Flutter video/audio player. Flutter media player plugin for android/iOS based on ijkplayer. fijkplayer 是基于 ijkplayer 封装的 flutter 媒体播放器,开箱即用,无需编译 ijkplayer | ||||||||||
Youtube_player_flutter | 603 | 12 | 4 | 3 days ago | 48 | May 16, 2022 | 362 | bsd-3-clause | Dart | |
Flutter plugin for playing or streaming YouTube videos inline using the official iFrame Player API. Supports both Android and iOS platforms. | ||||||||||
Moonplayer | 557 | 5 days ago | 31 | gpl-3.0 | C++ | |||||
Video player that can play online videos from youtube, bilibili etc. | ||||||||||
Videojs Resolution Switcher | 354 | 18 | 12 | 3 years ago | 18 | April 05, 2016 | 80 | other | JavaScript | |
Resolution switcher adds the ability to select the video quality in video.js player. | ||||||||||
Videoplayer | 146 | 4 years ago | 24 | Java | ||||||
Flutter_ijkplayer | 122 | 4 years ago | 4 | mit | Objective-C | |||||
this is video player for flutter plugin ,Support IOS/Android | ||||||||||
Lightning Sdk | 104 | 12 | a month ago | 36 | April 28, 2023 | 4 | apache-2.0 | JavaScript | ||
SDK for Lightning framework | ||||||||||
Vivemediadecoder | 96 | 4 years ago | 27 | other | C++ | |||||
A high performance video decoding Unity plugin for Windows. |
English | 简体中文
xgplayer is a web video and audio player library, designed with separate, detachable UI components. Since everything is componentized. the UI layer is very flexable.
xgplayer is bold in its functionality: it gets rid of video loading, buffering, and format support for video dependence.
For mp4 that does not support streaming, you can use staged loading. This means load control, seamless switching without artifacts, and video bandwidth savings. It also integrates on-demand and live support for FLV, HLS, and dash.
For more details, please read the Documentation.
Install
$ npm install xgplayer
Usage
Step 1:
<div id="vs"></div>
Step 2:
import Player from 'xgplayer';
const player = new Player({
id: 'vs',
url: 'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/byted-player-videos/1.0.0/xgplayer-demo.mp4'
})
This is the easiest way to configure the video player. For more advanced content, see the plug-in section or documentation. more config
xgplayer provides more plugins. Plugins are divided into two categories: one is self-starting, and another inherits the player's core class named xgplayer. In principle, the officially provided plug-ins are self-starting and the packaged third-party libraries are inherited. Some feature plug-ins themselves can provide a downgrade scenario that suggests a self-start approach, or an inheritance approach if not. The player supports custom plugins for more content viewing plugins
The following is how to use a self-starting plug-in:
import Player from 'xgplayer';
import 'xgplayer-mp4';
const player = new Player({
id: 'video',
url: '//abc.com/test.mp4'
})
xgplayer-mp4
plugin is self-starting, It loads mp4 video itself, parses mp4 format, implements custom loading, buffering, seamless switching, and so on. it will automatically downgrade devices that do not support MSE. details
For debugging, we provide example video files in github. You can clone the whole git repository, which includes both code and example videos with 'git clone --recurse-submodules -j8'. With 'git clone' you will pull only xgplayer code and its plugins.
$ git clone --recurse-submodules -j8 [email protected]:bytedance/xgplayer.git # OR git clone [email protected]:bytedance/xgplayer.git
$ cd xgplayer
$ npm install
$ npm run build:player
$ npm run dev
Then visit http://localhost:9090/examples/index.html
Welcome to use xgplayer! Please read the following terms carefully. Using xgplayer means that you accept and agree to the terms.