#Screen Recording

20 messages · Page 1 of 1 (latest)

astral laurel
#

How can I record my screen? Is there an integrated way from Tauri itself? Because, in Electron, there's an API for that.

winter timber
astral laurel
winter timber
# astral laurel Any suggestions?

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

rough fossil
#

I don't know much about this but maybe look into navigator.mediaDevices.getDisplayMedia

#

It's a javascript feature, so not as fast.

astral laurel
#

can I get the stream into my rust backend?

#

because I need the frames in the backend

rough fossil
#

I mean, you can use tauri features for that? like the invoke system.

astral laurel
#

yes, but the javascript type probably doesnt exist in rust

rough fossil
#

Yes, but you could send the data after to Rust as a file type and manipulate that using, yes, ffmpeg, etc

astral laurel
#

thats not what I need tho, im making a circular buffer

#

i guess you could do that in js too

rough fossil
#

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.

winter timber
#

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

astral laurel
#

i love violating the users privacy freely

astral laurel
#

im gonna try harder to find a rust approach first