A extension plugin which integrated hls.js based on gdplayer
$ npm istall gdplayer@alpha
$ npm istall gdplayer-hls.js@alphahtml
<div id="vs"></div>js
import Player from 'gdplayer'
import 'gdplayer/dist/gdplayer.min.css'
import HlsJsPlugin from 'gdplayer-hls.js'
const player = new Player({
id: 'vs',
url: '../gdplayer-demo.hls',
plugins: [HlsJsPlugin],
hlsJsPlugin: {} // config for plugin HlsJsPlugin
// If use CDN loading,you can Get the plugin through window.HlsJsPlugin
})