Selenium chromium fake mic and camera

Hey , I would like to ask a question, can I run this code in replit selenium/Chromium? Does replit’s Selenium/Chromium support this?

Code :point_down:

ChromeOptions options = new ChromeOptions();
    options.addArguments("use-fake-device-for-media-stream");
    options.addArguments("use-fake-ui-for-media-stream");

Thankyou

Hey @iebughunter!

Your code runs in a container in the cloud and does not have access to the devices on your computer, such as your camera or microphone. However, I think it might work if you use a fake mic and camera through software emulation, though I’m not sure how that works.

1 Like