Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chimee-flv2fmp4

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chimee-flv2fmp4

flv核心解码器

  • 0.2.7
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
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

Package last updated on 27 Nov 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc