Socket
Socket
Sign inDemoInstall

chimee-flv2fmp4

Package Overview
Dependencies
5
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chimee-flv2fmp4

flv核心解码器


Version published
Maintainers
2
Install size
3.28 MB
Created

Readme

Source

icon

npm install chimee-flv2fmp4 -S

var cpu= require("chimee-flv2fmp4")

new cpu();

Doc

function

  • setflv(arraybuffer) 参数,arraybuffer数组,返回值是该数值用到的位置
  • onInitSegment(fun) 参数,回调function, mp4初始化数据调用该方法,类型为uint8array
  • onMediaSegment(fun) 参数,回调function,mp4后续数据包会回调方法,类型为uint8array
  • onMediaInfo(fun) 参数,回调function,MP4获取metadata后会回调该方法,类型为object
  • seekCallBack(fun) 参数,回调function,跳转触发后,可进行跳转时回调
  • seek(time) 参数,时间,单位是秒,进行跳转
  • on(type,function) 参数,事件名,回调function,事件监听

event

  • error 核心出现问题时会向外派发这个事件

FAQs

Last updated on 31 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc