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-kernelUsage
<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} |