xgplayer-hls.js
TypeScript icon, indicating that this package has built-in type declarations

3.0.17 • Public • Published

Introduction

A extension plugin which integrated hls.js based on xgplayer

How to use

install

$ npm istall xgplayer@alpha
$ npm istall xgplayer-hls.js@alpha

Usage

html

  <div id="vs"></div>

js

import Player from 'xgplayer'
import 'xgplayer/dist/xgplayer.min.css'
import HlsJsPlugin from 'xgplayer-hls.js'

const player = new Player({
        id: 'vs',
        url: '../xgplayer-demo.hls',
        plugins: [HlsJsPlugin],
        hlsJsPlugin: {} // config for plugin HlsJsPlugin
        // If use CDN loading,you can Get the plugin through window.HlsJsPlugin
    })

Readme

Keywords

Package Sidebar

Install

npm i xgplayer-hls.js

Weekly Downloads

302

Version

3.0.17

License

MIT

Unpacked Size

1.19 MB

Total Files

9

Last publish

Collaborators

  • gemstone
  • cucygh
  • hongqiongxing
  • leonardo-fu
  • zhangxin92
  • bethelight
  • lixiangfeiorg