Preview - #63
Merged
Merged
Conversation
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
marked this pull request as ready for review
September 11, 2026 09:29
claire-chan
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
camera-preview-renders-incorrectly-ios.md, detailing the iOS 27 camera preview distortion issue, affected versions, workarounds, and upgrade recommendations.mrz-scanner/general/camera-preview-renders-incorrectly-ios.md.Navigation and Indexing:
barcode-reader/web/camera/index.md) and the main Camera section (barcode-reader/web/index.md) for improved discoverability. [1] [2]mrz-scanner/general/index.md).