Skip to content

lluisemper/video-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Video Preview Buffer

The aim with this project is create a preview for a video.

Features

  • This package recieves a file type video and returns an image type Buffer

Installation

npm i video-preview-buffer

Usage

const { screenshot } = require("video-preview-buffer")

Usage promise chaining

screenshot("video-url" , "number of seconds in which the preview will be taken").then(previewImage => console.log("My preview as Buffer: ",previewImage))

Usage async/await

Inside of an async funciton
const previewImage = await screenshot("video-url" , "number of seconds in which the preview will be taken")
console.log("My preview as Buffer: ", previewImage))

About

NPM package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published