You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Browser (Samsung Internet, Chrome, Opera Mini, the browser based on Chromium) and Samsung Mobile Phone (A73, S23) Error: NotReadableError: Could not start video source, It's Working with Firefox
#934
Open
mnasruul-xxi opened this issue
Jul 18, 2024
· 2 comments
I am experiencing an issue when trying to use the html5-qrcode library on Samsung mobile phones (specifically models A73 and S23) with Chromium-based browsers such as Samsung Internet, Chrome, and Opera Mini. The application throws the following error:
NotReadableError: Could not start video source
However, when I use Mozilla Firefox on the same devices, the QR code scanning works perfectly without any errors.
Steps to Reproduce
Implement the basic setup of the html5-qrcode library as described in the documentation.
Test the implementation on a Samsung mobile phone (A73 or S23) using a Chromium-based browser (Samsung Internet, Chrome, or Opera Mini).
Attempt to start the video source for QR code scanning.
Expected Behavior
The video source should start, and the QR code scanner should work as expected.
Actual Behavior
The following error is thrown:
NotReadableError: Could not start video source
Additional Information
Library Version: [Include the version of html5-qrcode you are using]
Browsers Tested:
Samsung Internet
Chrome:
Opera Mini
Mozilla Firefox
Devices Tested: Samsung A73, Samsung S23
Operating System: Android [Include version]
Additional Context
The site is served over HTTPS.
All necessary permissions for camera access have been granted in the browser and the system settings.
The issue does not occur when using Mozilla Firefox on the same devices.
The issue persists across different Chromium-based browsers, indicating a potential issue with how Chromium handles the getUserMedia API on these devices.
Steps Taken to Troubleshoot
Verified camera permissions in system settings and browser settings.
Ensured no other applications are using the camera.
Tested with a simplified version of the html5-qrcode implementation.
Verified that the site is served over HTTPS.
Updated all browsers to their latest versions.
Tested in Incognito Mode to rule out interference from extensions or cached data.
Code Sampel
`import { Html5QrcodeScanner } from 'html5-qrcode';
import React, { useEffect } from 'react';
on Android or IOS as long as you don't give camera permission to the App at the OS level so no way to use the camera in the application. html5-qrcode is JavaScript sandbox dependent so your issue has nothing to do with html5-qrcode
I am experiencing an issue when trying to use the html5-qrcode library on Samsung mobile phones (specifically models A73 and S23) with Chromium-based browsers such as Samsung Internet, Chrome, and Opera Mini. The application throws the following error:
NotReadableError: Could not start video source
However, when I use Mozilla Firefox on the same devices, the QR code scanning works perfectly without any errors.
Steps to Reproduce
Expected Behavior
The video source should start, and the QR code scanner should work as expected.
Actual Behavior
The following error is thrown:
NotReadableError: Could not start video source
Additional Information
Additional Context
Steps Taken to Troubleshoot
Code Sampel
The text was updated successfully, but these errors were encountered: