7 ms·
Awesome!, If you want to try without the ffmpeg dependency in the future, you might have some luck with the Canvas captureStream API [1] and the MediaStream Rec
by s369610 6y ago
Awesome!, If you want to try without the ffmpeg dependency in the future, you might have some luck with the Canvas captureStream API [1] and the MediaStream Recording API
[1] https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/captureStream https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasE...
[2] https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API https://developer.mozilla.org/en-US/docs/Web/API/MediaStream...
- TrevorSundberg 6y agoGreat suggestion! I could use this with requestFrame()! https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptu... I think I will make this change because the ffmpeg legality seems hairy. Thank you!