1. videojs-flvjs-es6
Video.js tech for FLV playback in MSE with flv.js use in es6 modules
videojs-flvjs-es6
Package: videojs-flvjs-es6
Created by: Yuliang-Lee
Last modified: Mon, 23 May 2022 06:34:42 GMT
Version: 1.0.1
License: Apache-2.0
Downloads: 2,719
Repository: https://github.com/Yuliang-Lee/videojs-flvjs-es6

Install

npm install videojs-flvjs-es6
yarn add videojs-flvjs-es6

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin