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 container is separate from webpage camera container. #15

Open
JIT909 opened this issue Jan 13, 2021 · 1 comment
Open

Camera container is separate from webpage camera container. #15

JIT909 opened this issue Jan 13, 2021 · 1 comment

Comments

@JIT909
Copy link

JIT909 commented Jan 13, 2021

How to not override existing webpage camera? Currently in my case, i got wkwebview page that use for scan qrcode. I implement the WkWebViewRTC. but the camera is overlap the existing container and cannot scan qrcode.

hope that you could help me. Thank you.

@hthetiot
Copy link
Contributor

Note: if the specified z-index is < 0 (that, is, the video elements will be positioned "behind" the web view), you should specify the background-color as transparent so the video element will be seen through the web view. This makes it possible to position HTML elements on top of the native video elements.

Source: https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/docs/videoCSS.md

TLDR: html and body with background transparent, ans video with z-index -1 and all containers between video and html with background transparent.

Sample: https://github.com/cordova-rtc/cordova-plugin-iosrtc-sample

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

No branches or pull requests

2 participants