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

Camera overlay capture webWorker #1927

Merged
merged 9 commits into from
Mar 24, 2025
Merged

Camera overlay capture webWorker #1927

merged 9 commits into from
Mar 24, 2025

Conversation

Umair-Manzoor-47
Copy link
Contributor

Overlay Capture Lag

When trying to capture overlay using web UI becomes unresponsive. apps seems like it's stuck but in fact background image processing is going on.

Solution

Using webWorker for heavy computation and running separate thread for this so UI remains responsive.

EDL:

      - Button:
          label: Custom Overlay widget
          onTap:
            openCamera:
              options:
                captureOverlay: true
                preview: true
                mode: photo
                maxCount: 1
              overlayWidget:

                Column:
                  styles:
                    height: 167
                    width: 250
                    crossAxis: center
                    mainAxis: center
                  children:
                    - Image:
                        source: https://i.imgur.com/rEYx444.png
2025-03-20.06-57-16.mp4

Copy link
Member

@TheNoumanDev TheNoumanDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Umair-Manzoor-47 Umair-Manzoor-47 merged commit 55f6c35 into main Mar 24, 2025
3 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