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

Method pushCaptureConfig

app/src/utils/tauriStreamCapture.ts:145–152  ·  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

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;

Callers 2

startVideoStreamMethod · 0.95
startCaptureStreamMethod · 0.95

Calls 2

getCaptureQualityMethod · 0.80
warnMethod · 0.80

Tested by

no test coverage detected