MCPcopy Create free account
hub / github.com/Roy3838/Observer / pushCaptureConfig

Method pushCaptureConfig

app/src/utils/tauriStreamCapture.ts:155–162  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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;

Callers 2

startVideoStreamMethod · 0.95
startCaptureStreamMethod · 0.95

Calls 2

getCaptureQualityMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected