JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q62172F
  • License MIT

kernel of chimee

Package Exports

  • chimee-kernel

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chimee-kernel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

chimee-kernel

Installation

npm install --save chimee-kernel

Usage

<video></video>

import kernel from '/src/kernel/kernel'

var Kernel=new kernel(document.querySelector('video'),{
    src: 'http://yunxianchang.live.ujne7.com/vod-system-bj/TL2791e64b69ea0bea234c284c694986aa.flv',
    type: 'vod',
    box: 'flv'
});

//load source
Kernel.load()

Config:

Field Type Description
src? string video source
isLive boolean 'false' or 'true',set video is a live stream or vod
box string Indicates stream box 'flv' or 'hls' or 'native'
preset? object set kernel decoder,example: import chimeeKernelFlv for 'chimee-kernel-flv'; preset:{'flv': chimeeKernelFlv}