Skip to content

Preview - #63

Merged
claire-chan merged 2 commits into
mainfrom
preview
Sep 11, 2026
Merged

Preview#63
claire-chan merged 2 commits into
mainfrom
preview

Conversation

@lyzhang0113

Copy link
Copy Markdown
Contributor

This pull request adds comprehensive documentation for an iOS 27 camera preview rendering issue affecting several Dynamsoft SDKs, and updates navigation to make this information easily accessible in both the Barcode Reader and MRZ Scanner documentation sections.

Documentation:

  • Added a new article, camera-preview-renders-incorrectly-ios.md, detailing the iOS 27 camera preview distortion issue, affected versions, workarounds, and upgrade recommendations.
  • Linked the new article in the MRZ Scanner documentation by referencing it in mrz-scanner/general/camera-preview-renders-incorrectly-ios.md.

Navigation and Indexing:

  • Added the new camera preview troubleshooting article to the Camera FAQ index (barcode-reader/web/camera/index.md) and the main Camera section (barcode-reader/web/index.md) for improved discoverability. [1] [2]
  • Included a link to the new article in the MRZ Scanner FAQ index (mrz-scanner/general/index.md).

lyzhang0113 and others added 2 commits September 11, 2026 15:09
On iOS 27, switching cameras or changing resolution can make the live
camera preview render incorrectly. The behavior differs by version: DBR
11.4 - 11.6.3000 (DCV 3.4 - 3.6.3000) renders the preview distorted,
while DBR 11.2 and earlier (DCV 3.2 and earlier) instead fails to fit it
to its container. It reproduces on Safari, Chrome, Edge, and Firefox,
since all iOS browsers share WebKit's camera implementation, so the
issue is suspected to originate there rather than in any Dynamsoft SDK.
It has been reported to Apple but is not confirmed as an Apple bug.

Upgrading to dynamsoft-barcode-reader-bundle 11.6.3200+ or
dynamsoft-capture-vision-bundle 3.6.3200+ is the recommended fix, and
the only one for 11.2 / 3.2 and earlier; a CSS/JS object-fit override is
a temporary fallback exclusive to 11.4 - 11.6.3000.

Adds the article under barcode-reader/web/camera with two reference
screenshots, symlinks it into mrz-scanner/general following the existing
license/ symlink pattern, and links it from the affected index pages.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A workaround now exists for DBR 11.2 / DCV 3.2 and earlier: reset the
video element's width and height on cameraChange and resolutionChange,
registered before cameraEnhancer.open(), together with a drawing layer
whose ID depends on the product (DBR 2, MDS 1, MRZ 3). Upgrading is
therefore no longer the only option for those versions.

Retitle and rename the article, since the issue is triggered by changing
resolution as well as switching cameras, and the older versions show a
fitting problem rather than distortion.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@lyzhang0113
lyzhang0113 marked this pull request as ready for review September 11, 2026 09:29
@claire-chan
claire-chan merged commit bc51665 into main Sep 11, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants