I'm trying to replicate this example https://www.primefaces.org/showcase-ext/views/codeScanner.jsf but a white screen appears, somebody can help me?
Asked
Active
Viewed 212 times
1
-
@JasperdeVries I try to test in desktop, codeScanner only work on mobile? – Igor Oliveira Mar 09 '21 at 18:26
-
Any errors in your browser's JavaScript console? – Jasper de Vries Mar 09 '21 at 18:55
-
No, how i can grant access to camera? I'm using chorme – Igor Oliveira Mar 09 '21 at 20:03
1 Answers
2
It turns out that some users experience issues with this component in the showcase when the browser decides the that the site is not secure:

This is a browser dependent issue possibly in combination with the type of SSL, or certificate PrimeFaces is using on their server. Note that this may change over time.
If this happens to you, first try upgrading your browser. If that did not help, try the component on localhost or a https server with no security issues for the browser you are using.
See also:

Jasper de Vries
- 19,370
- 6
- 64
- 102