A flv decoder for chimee, using flv.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build [update] support stopload as required in Chimeejs/chimee#70 Jan 19, 2018
demo [update] support stopload as required in Chimeejs/chimee#70 Jan 19, 2018
flow [update] add mp4 demo Dec 25, 2017
lib [build] 0.2.0 Jan 19, 2018
scripts [update] add flow type for flv.js Dec 24, 2017
src
tests [update] support stopload as required in Chimeejs/chimee#70 Jan 19, 2018
.babelrc [init] init project Dec 24, 2017
.eslintignore [init] init project Dec 24, 2017
.eslintrc [update] add flow type for flv.js Dec 24, 2017
.flowconfig [] Jan 6, 2018
.gitignore [init] init project Dec 24, 2017
.npmignore
.travis.yml [init] init project Dec 24, 2017
README.md [build] 0.1.0 Jan 6, 2018
karma.conf.js [update] support stopload as required in Chimeejs/chimee#70 Jan 19, 2018
package.json

README.md

chimee-kernel-flv.js

Build Status Coverage Status npm dependency Status devDependency Status

chimee-kernel-flv.js is the decoder for chimee. It can decode m3u8 on browser.

It's based on flv.js.js.

It totally fit the requirement of chimee-kernel.

It should only be used in the PC, as most of mobile browser support m3u8.

Installation

npm install --save chimee-kernel-flv.js

Usage

You can use chimee-kernel-flv.js in chimee or chimee-player like this.

import Chimee from 'chimee';
import ChimeeKernelFlvJs from 'chimee-kernel-flv.js';
const chimee = new Chimee({
  wrapper: '#wrapper',
  src: 'http://cdn.toxicjohann.com/lostStar.mp4',
  controls: true,
  autoplay: true,
  kernels: {
    flv: ChimeeKernelFlvJs,
  }
});
chimee.play();

We also support custom config on flv.js.js, such as config describe in the document.

import Chimee from 'chimee';
import ChimeeKernelFlvJs from 'chimee-kernel-flv.js';
const chimee = new Chimee({
  wrapper: '#wrapper',
  src: 'http://cdn.toxicjohann.com/lostStar.mp4',
  controls: true,
  autoplay: true,
  kernels: {
    flv: {
      handler: ChimeeKernelFlvJs,
      lazyLoad: true,
    }
  }
});
chimee.play();