user1618
(Дан Марк)
1
Please help!
chrome
vaadin 14 concole error
Uncaught (in promise) TypeError: Cannot read property ‘setAttribute’ of undefined
at BrowserMultiFormatReader.prepareVideoElement (index.js?8433:3419)
…
Error string
// Needed for iOS 11
videoElement.setAttribute(‘autoplay’, ‘true’);
Ryan100
(Ryan Pang)
2
If you use zXingVaadin.setFrom(Constants.From.camera), you need to set id to ‘video’ for zXingVaadin component, zXingVaadin.setId("video");
user1618
(Дан Марк)
3
Yes, it works, tell me how to add event handlers to read the qr code
Ryan100
(Ryan Pang)
4
zXingVaadin.addValueChangeListener(e->{
System.out.println("=QR=:"+e.getValue());
});
user1618
(Дан Марк)
5
Ryan Pang:
zXingVaadin.addValueChangeListener(e->{
System.out.println(“=QR=:”+e.getValue());
});
Hi! This variant don’t work, please help
Ryan100
(Ryan Pang)
6
What errors do you get? Is the demo working on your browser?
Dan153
(Dan Mark)
7
there are no errors, the handler event is not called, I use chrome and a webcam
Ryan100
(Ryan Pang)
8
It’d be invoked only when value changes. So you need to scan a code to get it called.
