JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q62191F
  • 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

用法示例

import kernel from '/src/kernel/kernel'
//参数1是video dom
//参数2是config
var Kernel=new kernel(document.querySelector('video'),{
    src:'http://xxx/xxx.mp4',
    type:'mp4'
});

//这个方法是重新设置config  这个暂时不支持
//这里面暂时是全部的参数
Kernel.setConfig({
    src:'http://xxx/xxx.mp4',
    isLive:false,
    autoPlay:false,
    type:'mp4'
})

//视频加载
Kernel.load()