I'm trying to automatically generate thumbnails for videos that have been uploaded to my Dropbox via Zoom. I'm using fluent-ffmpeg in a Firebase function, so the environment is a node.js runtime. I can get the Dropbox share url of the video when it loads, but I can't figure out how to download the file into the node environment as a blob so that ffmpeg can process it and generate the screenshots.
Any help appreciated.
Thanks!
Using the Dropbox API v2 JavaScript SDK, you can use the filesDownload method to download a file directly, or the sharingGetSharedLinkFile method to download a file from a shared link.
There's an example of handling the result in Node here. (That happens to be written for sharingGetSharedLinkFile, but filesDownload works the same way.)