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

Method stopVideo

app/src/utils/tauriStreamCapture.ts:1368–1387  ·  view source on GitHub ↗

* Stop only video capture. * Works on both desktop and iOS.

()

Source from the content-addressed store, hash-verified

1366 * Works on both desktop and iOS.
1367 */
1368 async stopVideo(): Promise<void> {
1369 if (!isTauri()) {
1370 throw new Error('Screen capture only available in Tauri');
1371 }
1372
1373 try {
1374 if (isDesktop()) {
1375 await invoke('sc_stop_video');
1376 } else {
1377 // iOS: Stop capture stream and broadcast
1378 await invoke('stop_capture_stream_cmd');
1379 await invoke('plugin:screen-capture|stop_capture_cmd');
1380 }
1381 this.capturing = false;
1382 this.latestFrameBytes = null;
1383 this.latestBase64Frame = null;
1384 } catch (error) {
1385 throw error;
1386 }
1387 }
1388
1389 /**
1390 * Stop only audio capture.

Callers

nothing calls this directly

Calls 2

isTauriFunction · 0.90
isDesktopFunction · 0.90

Tested by

no test coverage detected