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

3.0.18 • Public • Published

Introduction

A extension plugin based on xgplayer, it can support play dash video

How to use

install

$ npm istall xgplayer@alpha
$ npm istall xgplayer-dash@alpha

Usage

html

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

js

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
    })

Package Sidebar

Install

npm i xgplayer-dash

Weekly Downloads

223

Version

3.0.18

License

MIT

Unpacked Size

185 kB

Total Files

31

Last publish

Collaborators

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