video2frames

1.0.3 • Public • Published

video2frames

video2frames使用ESM导出 🔥

Installation 📦

在浏览器中使用:

<script type="module">
    import video2frames from 'video2frames.js'
</script>

或者您使用了包管理工具如npmyarn:

$ npm install video2frames

$ yarn add video2frames

Example 👏

import video2frames from 'video2frames'
const arr = []
const url = ''
video2frames(url, arr, 200)

API 🌟

  • source [String]

    视频地址,如本地文件请转为Blob Url使用

  • container [Array]

    存储帧图数组

  • time

    抽帧时间间隔

  • callback [Function]

    当有新帧图会触发函数

    function(frames: string[], frame: string) {...}

Readme

Keywords

Package Sidebar

Install

npm i video2frames

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

4.08 kB

Total Files

4

Last publish

Collaborators

  • yongzhi.liu