Dynamsoft / barcode-reader-javascript

Dynamsoft Barcode Reader JavaScript SDK for package managers. PDF417, QR Code, DataMatrix, MaxiCode and more are supported.
https://www.dynamsoft.com/barcode-reader/sdk-javascript/
Other
168 stars 111 forks source link

Stream fails to play inside iOS PWA application #133

Closed rubenkuipers closed 8 months ago

rubenkuipers commented 9 months ago

We are having an issue where the video stream of the scanner implemented in a PWA on iOS Safari fails to load. It seems this has been a known issue.

A member of this bugreport forum mentions he's been in contact with your team to figure out this issue in the past. Do you know if this issue has been resolved in the latest iOS version? And if so, what are the nessesary steps we need to take to make sure this will be resolved?

Currently we're on version 9.2.13 of the SDK.

rubenkuipers commented 9 months ago

@Keillion Any news regarding this issue?

Keillion commented 9 months ago

This bug seems to be fixed. @Cube-J has tested it in iPhone14 Pro with iOS17.0.1.

But there is another bug in iOS. The webgl is broken in some iPhone devices with iOS17.x. Some of iPhone14 pro and iPhone15 are reported.😂

Pls use the following code to workaround webgl bug:

// `scanner` is the instance of `BarcodeScanner`
scanner?._dce._bWebGLSupported=false;
scanner._bUseWebgl=false;

We are now busy releasing a version to automatically detect and workaround this issue.

Update: 9.6.31 has included the workaround now.

Therefore, keep using singleFrameMode as a fallback. Apple always surprises us again one day. 🤷‍♂️

Keillion commented 8 months ago

Since Cube has tested on iOS17 and this problem no longer recurs, we close it.