dkaoster / scrolly-video

Components for scroll-based (or other externally controlled) playback.
https://scrollyvideo.js.org/
MIT License
971 stars 39 forks source link

Reduce WebCodecs Memory Usage #17

Open dkaoster opened 1 year ago

dkaoster commented 1 year ago

Currently, using webcodecs may result in heavy memory usage, likely because of the way that this is simply pushing all the processed frames into an array. Doing so is particularly heavy for mobile android devices on Chrome.

dkaoster commented 1 year ago

Additionally, it may be helpful to add a failsafe in case the video that is being loaded is simply too large.