* 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
()
| 153 | * screen sensor to apply a changed value. |
| 154 | */ |
| 155 | private async pushCaptureConfig(): Promise<void> { |
| 156 | const { maxWidth, jpegQuality, fps } = SensorSettings.getCaptureQuality(); |
| 157 | try { |
| 158 | await invoke('sc_set_capture_config', { maxWidth, jpegQuality, fps }); |
| 159 | } catch (e) { |
| 160 | Logger.warn("TAURI_STREAM", `Failed to push capture config: ${e}`); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | // Active stream results (for cleanup) |
| 165 | private videoStreamResult: VideoStreamResult | null = null; |
no test coverage detected