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

3.0.20 • Public • Published

Introduction

A extension plugin which integrated flv.js based on xgplayer, it can support play flv video

How to use

install

$ npm istall xgplayer
$ npm istall xgplayer-flv.js

Usage

html

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

js

import Player from 'xgplayer'
import 'xgplayer/dist/xgplayer.min.css'
import FlvJsPlugin from 'xgplayer-flv.js'

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

Readme

Keywords

none

Package Sidebar

Install

npm i xgplayer-flv.js

Weekly Downloads

543

Version

3.0.20

License

MIT

Unpacked Size

634 kB

Total Files

7

Last publish

Collaborators

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