videojs-flvjs-es6

Video.js tech for FLV playback in MSE with flv.js use in es6 modules

Usage no npm install needed!

<script type="module">
  import videojsFlvjsEs6 from 'https://cdn.skypack.dev/videojs-flvjs-es6';
</script>

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