Expand description
JS-bridge bindings for the M-SCK.1 / .2 / .4 screen-capture commands (AUT-268 / AUT-269 / AUT-271).
Mirror of crate::camera_ipc / crate::mic_ipc /
crate::system_audio_ipc for the screen video path. Each
function invokes a __screen* helper in index.html which
wraps window.__TAURI__.core.invoke(...).
Structsยง
- Display
Source View - Mirror of
crates/app/src/commands.rs::DisplaySourceView. - Window
Source View - Mirror of
crates/app/src/commands.rs::WindowSourceView.
Enumsยง
- Screen
Sources Result - Tagged result so the picker can render a TCC-denied error inline instead of swallowing it.
Functionsยง
- js_
error_ ๐string - list_
screen_ displays - Enumerate displays. Empty
Vecoutside Tauri. - list_
screen_ displays_ js __screenListScreenDisplays()โPromise<DisplaySourceView[]>.- list_
screen_ windows - Enumerate visible windows.
- list_
screen_ windows_ js __screenListScreenWindows()โPromise<WindowSourceView[]>.- open_
settings_ screen_ recording - Open System Settings โ Privacy & Security โ Screen & System Audio Recording. No-op outside Tauri.
- open_
settings_ screen_ recording_ js __screenOpenSettingsScreenRecording()โ opens the OS privacy pane where the user enables Screen & System Audio Recording.- request_
screen_ recording_ permission - Trigger the platform Screen Recording permission flow. On macOS this is the call that creates the row in System Settings after a TCC reset.
- request_
screen_ recording_ permission_ js __screenRequestScreenRecordingPermission()โ triggers the macOS Screen & System Audio Recording TCC request.- screen_
capture_ frame_ count - Cumulative frame counter. Returns
0outside Tauri. - screen_
capture_ frame_ count_ js __screenScreenCaptureFrameCount()โPromise<number>.- screen_
capture_ status truewhen a screen-capture session is active.- screen_
capture_ status_ js __screenScreenCaptureStatus()โPromise<boolean>.- start_
screen_ capture - Start screen capture.
source_idofNonecaptures the primary display (M-SCK.0 default);Some("display-<id>")/Some("window-<id>")pin to a specific source (M-SCK.0.1 / AUT-291). ReturnsOk(())orErr(message). - start_
screen_ capture_ js __screenStartScreenCapture(sourceId?: string)โPromise<void>(or string error).sourceIdis"display-<id>"/"window-<id>"/nullfor primary display (M-SCK.0.1 / AUT-291).- stop_
screen_ capture - Stop screen capture.
- stop_
screen_ capture_ js __screenStopScreenCapture()โPromise<void>.