1.0.3 • Published 2 years ago

video2frames v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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) {...}

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago