question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Fake video capture

See original GitHub issue

I have reviewed the documentation, but i have not found an answer to this. Is it possible in playwright to configure a fake video capture?

Something like --use-file-for-fake-video-capture option for chrome. This is a nice to have popular request, for instance, in alike frameworks such as cypress.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jruizarangurencommented, Jan 5, 2021

You can pass chrome launch arguments to achieve it, but there is no support for it on non-Chromium browsers.

This worked like a charm:

args=["--use-fake-device-for-media-stream",
        "--use-file-for-fake-video-capture=/path/to/video.y4m"]
2reactions
dgozmancommented, Nov 30, 2020

Leaving as a feature request. For now, please use available workarounds for Chromium and Firefox. Thanks @viraxslot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I correctly provide a mock webcam video to Chrome?
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" ...
Read more >
media/base/media_switches.cc - chromium/src - Git at Google
Use fake device for Media Stream to replace actual camera and microphone. ... media/capture/video/file_video_capture_device.h for more details.
Read more >
How Are Fake Live Video Calls Made? Here's How to Spot ...
Concerned that people are making fake video calls? Want to prank a friend? Here's how to make or spot a fake video call....
Read more >
Testing | WebRTC
--use-file-for-fake-video-capture=path/to/file.y4m feeds a Y4M test file to getUserMedia() instead of live camera input. Subpage Listing. Analyze packets using ...
Read more >
cypress-io/cypress - Gitter
args.push('--use-file-for-fake-video-capture=C:\NOEMI\EjemploWebcam\webcam-tests\cypress ... update the fixture content; use the feature in the next command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found