Separate fake webcam and screen feeds

50 views
Skip to first unread message

Arthas Menethil

unread,
Jun 8, 2026, 11:14:48 AM (2 days ago) Jun 8
to Chromium-discuss
Hi Chromium people,

Probably a turbo-stupid question but is there, or will there be, an option to feed separate fake video feeds into Chromium?

I'm a test automation engineer and I'm trying to feed separate fake video and screen recordings as part of an automation effort.

Currently I'm stuck in a Catch-22 type of situation where in order to pass a fake webcam feed I need to use specific chromium flags:

--use-fake-device-for-media-stream for enabling the feed in the first place
--use-fake-ui-for-media-stream for handling permissions without interacting with system prompts
--use-file-for-fake-video-capture for the file directory

If I don't use --use-fake-device-for-media-stream I can't pass fake recordings, but if I do use it, I can't have a real screen recording(which would be handy for running the test locally at least).

If I don't use --use-fake-ui-for-media-stream I can't handle permissions without interacting with system prompts which Playwright doesn't handle by design and I'd like to avoid with regard to running tests in CI and/or on machines other than my own.

In the provided screenshots there is a successful fake webcam feed (the news lady on the left), but if I try to share my screen in any capacity I get the default screen which originates from Chromium(right side). 

I'm aware that there are separate permission flags for webcam and audio, but there isn't a separate flag for screen recording permission.

Any suggestions and/or advice would be helpful, if there isn't an elegant solution to this specific scenario I'd like to move for a feature suggestion/improvement where there would be separate Chromium flags for separate video/audio/screen files and permissions.

Screenshots attached for your convenience.

Thanks a bunch!
SCR-20260529-kiyo.png
SCR-20260529-kdqn.png
Reply all
Reply to author
Forward
0 new messages