videojs-flvjs-es6

1.0.1 • Public • Published

videojs-flvjs-es6

Refactor videojs-flvjs for compatitable with ES6 module.

Installation

npm install --save video.js flv.js videojs-flvjs-es6

Usage

You need to include video.js first.

videojs-flvjs-es6 internally depends on flvjs, so there is no need to explicitly introduce flvjs.

<video id="#video-js-node"></video>
import videojs from 'video.js'
import 'videojs-flvjs-es6'
 
videojs('video-js-node', {
  flvjs: {
    mediaDataSource: {
      isLive: true,
      cors: false,
      withCredentials: false,
    },
  },
  controls: 'control',
  preload: 'auto',
  height: '505',
})

Thanks to

License

Apache-2.0. Copyright (c) xlaoyu

Package Sidebar

Install

npm i videojs-flvjs-es6

Weekly Downloads

742

Version

1.0.1

License

Apache-2.0

Unpacked Size

6.28 kB

Total Files

5

Last publish

Collaborators

  • xlaoyu