Function nokhwa::js_camera::query_supported_constraints
source · pub fn query_supported_constraints(
) -> Result<Vec<JSCameraSupportedCapabilities>, NokhwaError>
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