pub fn query_supported_constraints_js() -> Result<Array, JsValue>
Available on crate feature input-jscam only.
Expand description

Queries the browser’s supported constraints using navigator.mediaDevices.getSupportedConstraints()

Errors

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

JS-WASM

This is exported as queryConstraints and returns an array of strings.