#Screen Recording
20 messages · Page 1 of 1 (latest)
Nope, nothing built into Tauri. You can probably find a crate for it though, pretty much anything on crates.io that you find can be used in your app
Any suggestions?
I've tried a lot of crates, but they're just really hard to understand. Most of the FFMPEG ones just don't compile.
Sorry not really, never had to do it myself so haven't investigated, but I do suspect that it's gonna be easiest to use one of the FFMPEG based ones, even if dealing with the ffmpeg setup can be annoying
I don't know much about this but maybe look into navigator.mediaDevices.getDisplayMedia
It's a javascript feature, so not as fast.
can I get the stream into my rust backend?
because I need the frames in the backend
I mean, you can use tauri features for that? like the invoke system.
yes, but the javascript type probably doesnt exist in rust
Yes, but you could send the data after to Rust as a file type and manipulate that using, yes, ffmpeg, etc
thats not what I need tho, im making a circular buffer
i guess you could do that in js too
Probably! Like I said, I don't know much about video recording specifically.
Also maybe look into applications that can already do that? I don't know of any though.
The JS feature relies on the user saying yes to screen capturing, if they say no then it's really annoying to re-ask for that permission. If you do it in the Rust end you can violate your users privacy freely
i love violating the users privacy freely
true.. 
im gonna try harder to find a rust approach first