* Push the persisted capture quality (max width / JPEG quality / FPS) to the Rust * backend. Called right before each desktop capture starts so the stream is built with * the current settings — no app restart or live stream-restart needed; just toggle the * screen sensor to apply a changed
()
| 143 | * screen sensor to apply a changed value. |
| 144 | */ |
| 145 | private async pushCaptureConfig(): Promise<void> { |
| 146 | const { maxWidth, jpegQuality, fps } = SensorSettings.getCaptureQuality(); |
| 147 | try { |
| 148 | await invoke('sc_set_capture_config', { maxWidth, jpegQuality, fps }); |
| 149 | } catch (e) { |
| 150 | Logger.warn("TAURI_STREAM", `Failed to push capture config: ${e}`); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | // Active stream results (for cleanup) |
| 155 | private videoStreamResult: VideoStreamResult | null = null; |
no test coverage detected