We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working fine on android and macOS but cannot on iOS 17
const handleStartCamera = useCallback(() => { setMode('camera') setIsScanning(true) cameraRef.current = new Html5Qrcode('reader') cameraRef.current.start( { facingMode: cameraEnv }, { fps: 10, qrbox: { width: 250, height: 250 }, }, onScanSuccess, onScanError, ) }, [cameraEnv, onScanError, onScanSuccess])
const handleSwitchCamera = useCallback(() => { Html5Qrcode.getCameras().then((cameras) => { if (cameras.length < 2) { return } if (cameraRef.current) { setCameraEnv((prev) => prev === 'environment' ? 'user' : 'environment', ) cameraRef.current.stop().then(() => { handleStartCamera() }) } }) }, [handleStartCamera])
The element in Html5Qrcode instance created but canvasElement didn't create.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Working fine on android and macOS but cannot on iOS 17
The element in Html5Qrcode instance created but canvasElement didn't create.
The text was updated successfully, but these errors were encountered: