https://github.com/yuliang-lee/videojs-flvjs-es6
Video.js tech using flv.js for FLV playback.For ES6 modules.
https://github.com/yuliang-lee/videojs-flvjs-es6
flvjs videojs
Last synced: 2 months ago
JSON representation
Video.js tech using flv.js for FLV playback.For ES6 modules.
- Host: GitHub
- URL: https://github.com/yuliang-lee/videojs-flvjs-es6
- Owner: Yuliang-Lee
- License: other
- Created: 2020-01-18T10:36:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T11:55:27.000Z (over 3 years ago)
- Last Synced: 2025-10-22T16:17:41.213Z (8 months ago)
- Topics: flvjs, videojs
- Language: JavaScript
- Size: 751 KB
- Stars: 9
- Watchers: 1
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# videojs-flvjs-es6
Refactor [videojs-flvjs](https://github.com/mister-ben/videojs-flvjs) for compatitable with ES6 module.
## Installation
```sh
npm install --save video.js flv.js videojs-flvjs-es6
```
## Usage
You need to include [video.js](https://github.com/videojs/video.js) first.
`videojs-flvjs-es6` internally depends on `flvjs`, so there is no need to explicitly introduce flvjs.
```html
```
```js
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
[videojs]: http://videojs.com/
[videojs-flvjs]: https://github.com/mister-ben/videojs-flvjs
## License
Apache-2.0. Copyright (c) xlaoyu