vue-qrcode-reader icon indicating copy to clipboard operation
vue-qrcode-reader copied to clipboard

Can't fake camera with tests

Open Nisgrak opened this issue 5 years ago • 4 comments

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:

  1. Use the flags --use-fake-device-for-media-stream and --use-file-for-fake-video-capture=absolute/route/to/qr.y4m in chrome
  2. Open the demos
  3. 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

Nisgrak avatar Nov 05 '19 17:11 Nisgrak

Note, that we haven't managed to implement any tests so far (see #61).

What error are you seeing on the page?

gruhn avatar Nov 06 '19 13:11 gruhn

This is the error.

image

Nisgrak avatar Nov 06 '19 14:11 Nisgrak

The only thing I can say so far is that this is caused by a NotReadableError. I'll try to dig deeper in time.

gruhn avatar Nov 06 '19 14:11 gruhn

Any developments on this?

tzifrea avatar Apr 05 '22 07:04 tzifrea

This issue has been marked as stale. If there is no further activity it will be closed.

github-actions[bot] avatar Aug 10 '23 00:08 github-actions[bot]