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: 16 days ago
JSON representation

Video.js tech using flv.js for FLV playback

Lists

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/