Skip to content
New issue

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

iOS 17.4.1 Error: Failed to play video. Timeout. #147

Open
DaryaSuv opened this issue May 23, 2024 · 2 comments
Open

iOS 17.4.1 Error: Failed to play video. Timeout. #147

DaryaSuv opened this issue May 23, 2024 · 2 comments

Comments

@DaryaSuv
Copy link

Hello,
Could you take a look on issue I'm facing with dynamsoft-barcode-reader

Full list of installed dependencies and versions:
"dynamsoft-barcode-reader": "10.0.21",
"dynamsoft-camera-enhancer": "4.0.1",
"dynamsoft-capture-vision-router": "2.0.32",
"dynamsoft-capture-vision-std": "1.0.0",
"dynamsoft-core": "3.0.33",
"dynamsoft-image-processing": "2.0.30",
"dynamsoft-license": "3.0.40",
"dynamsoft-utility": "1.0.21",

Case:
The integration was made fully according to the react-hook sample. Barcode scanner component is set up in modal window. For the first load of modal window with barcode scanner 'request for access to camera' message is shown -> scanning works as expected. But if i will close this modal window with scanner, lock phone for 1-2 minutes, unlock and try to open scanner one more time, 'request for access to camera' message is shown -> error appears, scanning not working.

Please take a look on the screenshots:
image
image

Thank you in advance

@Keillion
Copy link
Collaborator

Keillion commented May 24, 2024

It's a known issue in iOS17.4.1. iOS needs more time to open camera now.

Solution 1

Pls update dynamsoft-camera-enhancer to 4.0.3 in package.json.

npm i [email protected] -E

Update engineResourcePaths:

CoreModule.engineResourcePaths.dce = "https://cdn.jsdelivr.net/npm/[email protected]/dist/"

Solution 2

If you encounter code incompatibility, you can completely remove all dependencies of dynamsoft, and use [email protected] instead.

npm i [email protected] -E

Update engineResourcePaths:

CoreModule.engineResourcePaths = {
  std: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
  dip: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
  core: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
  license: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
  cvr: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
  dbr: "https://cdn.jsdelivr.net/npm/[email protected]/dist/",
  dce: "https://cdn.jsdelivr.net/npm/[email protected]/dist/"
};

@DaryaSuv
Copy link
Author

Thank you a lot, all works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants