DVinyl icon indicating copy to clipboard operation
DVinyl copied to clipboard

[Bug]: EAN-13 scanner fails on iPhone Safari while ZXing demo succeeds

Open ArtwoXYZ opened this issue 3 months ago • 2 comments

Before reporting

  • [x] I am running the latest version of DVinyl.
  • [x] I searched the existing issues and did not find a duplicate.

What happened?

On DVinyl 3.1.4, the barcode scanner opens normally and displays the rear camera feed, but it never detects EAN-13 barcode 8717418371418 on Safari on an iPhone 13 running iOS 26.6.

Camera permission is granted and DVinyl is accessed over HTTPS. The barcode remains clearly visible inside the scanning area, but the scanner keeps running indefinitely without detecting or submitting any number.

Entering the same barcode manually works correctly, so the barcode lookup itself is not the issue.

For comparison, the official ZXing JavaScript multi-camera demo detects the same physical barcode quickly and returns the correct number using the same iPhone, Safari camera, distance, and lighting:

https://zxing-js.github.io/library/examples/multi-camera/

The camera view looks very similar in both tests. This therefore appears to be related to DVinyl's scanner implementation or configuration rather than camera permission, HTTPS, or barcode lookup.

Smaller DVD barcodes can also be difficult to scan in the ZXing demo because of the iPhone's minimum focus distance. However, this report focuses on a normal-sized EAN-13 that ZXing successfully detects but DVinyl does not.

The current DVinyl scanner configuration uses html5-qrcode with:

  • fps: 10
  • qrbox: { width: 250, height: 150 }
  • aspectRatio: 1.0
  • EAN-13, EAN-8, UPC-A and UPC-E enabled

Possibly useful investigation points would be comparing the current html5-qrcode implementation with direct ZXing decoding, testing without the fixed aspect ratio, testing a larger/full-frame scanning region, or requesting a higher video resolution.

Steps to reproduce

  1. Open DVinyl 3.1.4 over HTTPS in Safari on an iPhone 13 running iOS 26.6.
  2. Open the movie addition page and select Blu-ray.
  3. Tap Scan a Barcode and grant camera permission.
  4. Place an EAN-13 barcode inside the scanning frame.
  5. Adjust the distance until the barcode is as clear as possible.
  6. Observe that the camera remains open indefinitely and no barcode is detected.
  7. Stop scanning and enter the same code manually.
  8. Observe that the manual barcode search works.
  9. In Safari on the same iPhone, open: https://zxing-js.github.io/library/examples/multi-camera/
  10. Tap Start and scan the same physical barcode from a similar distance.
  11. Observe that the demo quickly returns the correct number.

Expected behavior

DVinyl should detect and submit a standard EAN-13 barcode that can be decoded successfully from the same camera feed by ZXing on the same device.

If decoding fails, displaying or logging a useful diagnostic would also help distinguish an unreadable frame from an unsupported format or decoder failure.

DVinyl version

3.1.4

How are you running DVinyl?

Docker (pre-built image)

Affected media type or plugin

Movies (tested while adding a Blu-ray; the shared barcode scanner may affect other media types as well)

Browser and device

Safari on iPhone 13, iOS 26.6. DVinyl is accessed over HTTPS.

Logs or screenshots

No visible error is displayed and no server-side error was observed. The camera opens successfully, but decoding never completes.

ArtwoXYZ avatar Aug 22 '26 12:08 ArtwoXYZ

Hello! Thanks for this detailed report! It's going to be a big help. I'll take a look at it when I can, probably early next week ;) Thanks again!

Kyonew avatar Aug 22 '26 12:08 Kyonew

Hi! I just released version 3.1.5, which fixes this :D

The scanner now decodes the native camera frame with ZXing directly, no intermediate resize. Your 8717418371418 should register as fast as it does in the demo.

Feel free to reopen the issue if you run into any problems!

Kyonew avatar Sep 03 '26 16:09 Kyonew