-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
feat(barcode-scanning): mount camera to HTML tag OR set camera height/width #79
Comments
Thank you for your request!
This is the ultimate goal. I have other priorities at the moment, but PRs are welcome.
You can already put custom WebView UI over the camera view. So defining a certain width/height would only have performance advantages. |
@robingenz Hello. Is there an estimate on when this feature is implemented. I'm in search for a barcode scanner for Ionic Vue where it does not take up the entire screen. As mtpython says if it could be an HTML tag that is more controllable and I can have other tags visiable together with the camera open that would be superb |
No, there is no ETA.
You can already have other html elements visible when the camera is active. That's what we implemented in our official demo app. You just need to set the correct css rules. |
Plugin(s)
Current problem
Currently, the camera preview takes up the full background. It would be useful to either mount the camera preview into an HTLM tag with set dimensions, or set the width/height of the camera preview itself, allowing to frame it by overlaying UI over it.
Preferred solution
Two possible solutions:
id
:export interface StartScanOptions { formats?: BarcodeFormat[]; lensFacing?: LensFacing; + parentID?: string; }
Which would mount to HTML tag with id provided in
parentID
(=camera-parent
):To allow making the preview smaller than full viewport width and height.
Alternative options
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: