pub async fn request_permission() -> Result<(), NokhwaError>
Available on crate feature input-jscam only.
Expand description

Requests Webcam permissions from the browser using MediaDevices::get_user_media() MDN

Errors

This will error if there is no valid web context or the web API is not supported