vue-qrcode-reader
vue-qrcode-reader copied to clipboard
Can't fake camera with tests
Describe the bug I try to make a test with Cypress, faking the qr as y4m file, when use the convenient flag(describe below) the lib throw a error.
To Reproduce Steps to reproduce the behavior:
- Use the flags
--use-fake-device-for-media-stream
and--use-file-for-fake-video-capture=absolute/route/to/qr.y4m
in chrome - Open the demos
- See the error in the page
Expected behavior The cam should be faked with the y4m file
Additional context https://docs.cypress.io/api/plugins/browser-launch-api.html#Use-fake-video-for-webcam-testing Example y4m file
Note, that we haven't managed to implement any tests so far (see #61).
What error are you seeing on the page?
This is the error.
The only thing I can say so far is that this is caused by a NotReadableError. I'll try to dig deeper in time.
Any developments on this?
This issue has been marked as stale. If there is no further activity it will be closed.