josephrocca / getVideoFrames.js

Simple JavaScript library to break a video down into individual frames (uses WebCodecs API and MP4Box.js)
MIT License
38 stars 4 forks source link

Made onReady function accessible #4

Open vlasakjiri opened 1 year ago

vlasakjiri commented 1 year ago

This allows the user to specify onReadyCallback function and access the info object, which contains useful information about number of frames, length of the tracks, etc.

Sorry for the formatting changes. Not sure how to exactly match your formatting

josephrocca commented 1 year ago

Hey thanks - if you can resubmit without formatting changes I can take a look. Hard to see actual changes here. Also please use same naming convention - i.e. onReady, rather than onReadyCallback.