Interface CaptureOptions

Optional hints for a capture. They deliberately name NOTHING — no device id, no camera index — because the host chooses everything about how the capture is performed. That is what lets the grant be a plain on/off instead of a per-call target list the way net:fetch needs.

interface CaptureOptions {
    facing?: "user" | "environment";
}

Properties

Properties

facing?: "user" | "environment"

Which way the camera should face, if the device has a choice. A HINT: the host may ignore it. Ignored for audio.