Hello everyone, I'm having some problems with tauri, I encountered a barrier when sending buffers to the frontend in a quick and optimized way, I'm using the scap lib to capture the screen in real time and I wanted to pass the preview of the window that is being captured on the frontend, The problem is to do this without crashing the entire app, unfortunately the scap documentation is a bit weak and doesn't present very useful information, but despite this I would like to know if there is any simple way to send the buffers to the frontend.
#Way to send buffers to the frontend quickly and optimally
5 messages · Page 1 of 1 (latest)
The most efficient (tauri specific) way would be this https://v2.tauri.app/develop/calling-rust/#returning-array-buffers but it requires a call from the frontend. Channels should be pretty close in performance https://v2.tauri.app/develop/calling-rust/#channels.
If you don't need Linux support then webrtc would probably be the most efficient way but i don't have any resources to help you with that.
channel is cool, never try that before, if you using return/recive ArrayBuffers, it will crash when ArrayBuffer too large like 500mb or so
the problem is not the quantity but the speed, but I talked about wgpu, so maybe it is possible.