Open iuliaib opened 5 months ago
So what worked for me in this case is that I had to properly format video for ".y4m" format, which I achieved via "ffmpeg -i test.mp4 -pix_fmt yuv420p test.y4m" command. (make sure to install to have ffmpeg installed
Also make sure that your browser persmissions plugin enables permissions for camera for Chrome, you can make sure you actually have --use-fake-device-for-media-stream
and --use-fake-device-for-media-stream
set by logging permissions.
Current behavior
Hello! I am new to Cypress and I am trying to send an *.y4m video to the webcam. I have a Typescript project.
I've found this project on github: https://github.com/taylorjg/sudoku-buster-react and here is working to fake the webcam (I've also updated to the latest cypress version and is still working), but if I replace the baseUrl with my project's one, no video is loading. This is what I get:
Does anyone have any idea why the *.y4m video is not played? (I've also tried other extensions as *.mjpeg, but I have the same behaviour)
As the BE & FE projects are on some private repositories, I will send here pieces of code when asked.
Here is the DOM of my webcam-page: dom-page.txt
Desired behavior
I am expecting to see the *.y4m video as per:
Test code to reproduce
I have also tried to use "cypress-browser-permissions": "^1.1.0", but it didn't make any difference:
// cypress.config.ts
Chrome: Version 123.0.6312.122 (Official Build) (64-bit)
All the other configurations are in the attached GitHub project
Cypress Version
13.7.3
Node version
v21.6.1
Operating System
Ubuntu 20.04
Debug Logs
No response
Other
No response