Please help! chrome vaadin 14 concole error Uncaught (in promise) TypeError

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’);

If you use zXingVaadin.setFrom(Constants.From.camera), you need to set id to ‘video’ for zXingVaadin component, zXingVaadin.setId("video");

Yes, it works, tell me how to add event handlers to read the qr code

zXingVaadin.addValueChangeListener(e->{
    System.out.println("=QR=:"+e.getValue());
});

Ryan Pang:
zXingVaadin.addValueChangeListener(e->{
System.out.println(“=QR=:”+e.getValue());
});

Hi! This variant don’t work, please help

What errors do you get? Is the demo working on your browser?

there are no errors, the handler event is not called, I use chrome and a webcam

It’d be invoked only when value changes. So you need to scan a code to get it called.
18524318.png