README
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