Skip to content

πŸ“Ή => 🎞 Utility that generates thumbnails from user video in a browser

Notifications You must be signed in to change notification settings

dmitryrodnikov/video-snap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

VideoSnap πŸ“Ή => 🎞

Get multiple snapshots from video in a browser.

Demo

https://dmitryrodnikov.github.io/video-snap/

Usage

Imagine you want to render thumbnails for a video that user just added to file input.

// 1. Get File object from fileInput
const file = fileInput.files[0];

// 2. Convert File object to url
const fileUrl = window.URL.createObjectURL(file);

// 3. Create new instance of VideoSnap with that url
const videoSnap = new VideoSnap(fileUrl);

// 4. Get an array of image urls (Blob urls) from that video
videoSnap.getFrames(10).then(thumbnails => {
    // Use generated thumbnails here
});

About

πŸ“Ή => 🎞 Utility that generates thumbnails from user video in a browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published