--use-file-for-fake-video-capture
What does --use-file-for-fake-video-capture do?
Use an .y4m file to play as the webcam. See the comments in media/capture/video/file_video_capture_device.h for more details.
Usage
CLILaunch Chrome with --use-file-for-fake-video-capture using CLI
chrome --use-file-for-fake-video-capturePuppeteerLaunch Chrome with --use-file-for-fake-video-capture using Puppeteer
const browser = await puppeteer.launch({
args: ['--use-file-for-fake-video-capture']
});PlaywrightLaunch Chrome with --use-file-for-fake-video-capture using Playwright
const browser = await chromium.launch({
args: ['--use-file-for-fake-video-capture']
});SeleniumLaunch Chrome with --use-file-for-fake-video-capture using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--use-file-for-fake-video-capture')
driver = webdriver.Chrome(options=options)