Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mister-ben/videojs-flvjs
Video.js tech using flv.js for FLV playback
https://github.com/mister-ben/videojs-flvjs
flv video-player videojs
Last synced: 7 days ago
JSON representation
Video.js tech using flv.js for FLV playback
- Host: GitHub
- URL: https://github.com/mister-ben/videojs-flvjs
- Owner: mister-ben
- License: other
- Created: 2017-02-05T16:00:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T12:10:50.000Z (10 months ago)
- Last Synced: 2024-11-01T13:36:09.373Z (12 days ago)
- Topics: flv, video-player, videojs
- Language: JavaScript
- Homepage: https://mister-ben.github.io/videojs-flvjs/
- Size: 4.24 MB
- Stars: 126
- Watchers: 8
- Forks: 31
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# videojs-flvjs
Video.js tech to use [flv.js](https://github.com/Bilibili/flv.js) for FLV playback using MSE instead of Flash.
Check out the flv.js docs for details on its capabilities, browser support etc. Note that you need [CORS headers](https://github.com/Bilibili/flv.js/blob/master/docs/cors.md) if your video is being hosted at a different origin.
[Example](https://mister-ben.github.io/videojs-flvjs/)
## Installation
```sh
npm install --save videojs-flvjs
```## Usage
You need to include [flv.js](https://github.com/Bilibili/flv.js) itself.
```html
// For v5 the tech must be added to the tech order.
// For v6 this is not needed.
videojs('videojs-flvjs-player', {
techOrder: ['html5', 'flvjs'],
flvjs: {
mediaDataSource: {
isLive: true,
cors: true,
withCredentials: false,
},
// config: {},
},
});```
## License
Apache-2.0. Copyright (c) mister-ben
[videojs]: http://videojs.com/