xgplayer-shaka
TypeScript icon, indicating that this package has built-in type declarations

3.0.17 • Public • Published

Introduction

A extension plugin which integrated shaka-player based on xgplayer

How to use

install

$ npm istall xgplayer@alpha
$ npm istall xgplayer-shaka@alpha

Usage

html

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

js

import Player from 'xgplayer'
import 'xgplayer/dist/xgplayer.min.css'
import ShakaPlugin from 'xgplayer-shaka'

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

Package Sidebar

Install

npm i xgplayer-shaka

Weekly Downloads

23

Version

3.0.17

License

MIT

Unpacked Size

1.24 MB

Total Files

7

Last publish

Collaborators

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