How can I correctly provide a mock webcam video to Chrome?
问题 I'm trying to run end-to-end testing in Chrome for a product that requires a webcam feed halfway through to operate. From what I understand this means providing a fake webcam video to Chrome using the --use-file-for-fake-video-capture="/path/to/video.y4m" command line argument. It will then use that as a webcam video. However, no matter what y4m file I provide, I get the following error from Chrome running under these conditions: DOMException: Could not start video source { code: 0, message: