2 ms·
I think this is the source: https://github.com/mattorchard/vippet/ https://github.com/mattorchard/vippet/. Export code is here: https://github.com/mattorchard/
by pimterry 6y ago
I think this is the source: https://github.com/mattorchard/vippet/ https://github.com/mattorchard/vippet/.
Export code is here: https://github.com/mattorchard/vippet/blob/master/src/helpers/exportHelpers.ts https://github.com/mattorchard/vippet/blob/master/src/helper....
Seems like MediaRecorder (https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder https://developer.mozilla.org/en-US/docs/Web/API/MediaRecord...) is the standard API to record the screen, it takes a video format during setup, and then `recorder.requestData()` will give you the raw bytes for your format of choice when you're done, ready to download and save or do whatever with. Web standards do a lot of heavy lifting for you nowadays!