hello!
I was getting some minor TypeScript red squigglies in the Vite demo app that I was able to resolve with these changes. TS was complaining about accessing possible null refs (video & message) and data.buffer.
Since ffmpeg.readFile returns type FileData, seemed that the data needed to be cast as ArrayBuffer then converted to Uint8Array to access the buffer property.
I didn't see any contribution guidelines for the examples/misc stuff, sorry if this isn't how it's done 😅
hello! I was getting some minor TypeScript red squigglies in the Vite demo app that I was able to resolve with these changes. TS was complaining about accessing possible null refs (video & message) and
data.buffer
.Since
ffmpeg.readFile
returns typeFileData
, seemed that the data needed to be cast asArrayBuffer
then converted toUint8Array
to access thebuffer
property.I didn't see any contribution guidelines for the examples/misc stuff, sorry if this isn't how it's done 😅