xgplayer-dash
Version:
xgplayer plugin for MPEG-DASH
30 lines (26 loc) • 622 B
Markdown
A extension plugin based on xgplayer, it can support play dash video
```shell
$ npm istall xgplayer@alpha
$ npm istall xgplayer-dash@alpha
```
html
```html
<div id="vs"></div>
```
js
```javascript
import Player from 'xgplayer'
import 'xgplayer/dist/xgplayer.min.css'
import DashPlugin from 'xgplayer-dash'
const player = new Player({
id: 'vs',
url: '../xgplayer-demo.hls',
plugins: [DashPlugin],
DashPlugin: {} // config for plugin DashPlugin
// If use CDN loading,you can Get the plugin through window.DashPlugin
})
```