Skip to main content

Module media_capture

Module media_capture 

Source
Expand description

Host-side media capture: camera, microphone, and screen (with permission prompts).

Guests call register_media_capture_functions imports from the oxide module. Access is gated per origin through crate::permissions: the first call returns PERMISSION_PENDING while the in-browser prompt is showing, and the guest retries on a later frame. Native OS prompts (camera / microphone / screen recording) may appear in addition once the in-browser grant is given.

Structs§

MediaCaptureState
Shared capture state for a tab (camera stream, mic ring buffer, counters for pipeline stats).

Functions§

register_media_capture_functions
Register api_camera_*, api_microphone_*, api_screen_capture, and api_media_pipeline_stats.