In my case I need emulate camera to use it on chromium.
I already tried command like this:
chrome.exe --use-fake-ui-for-media-stream --disable-web-security --use-fake-device-for-media-stream --use-file-for-fake-video-capture="C:\Users\user\Desktop\test\bridge_far_cif.y4m" --allow-file-access
and it works fine. But when I add it on my codecept.conf.js it doesn't. I still get error "can't get access to camera". What I did wrong in configuration file?
exports.config = {
tests: './*_test.js',
output: './output',
helpers: {
Puppeteer: {
url: 'https://url/',
fullPageScreenshots: true,
chrome: {
args: ['--use-fake-ui-for-media-stream',
'--disable-web-security',
'--use-fake-device-for-media-stream',
'--use-file-for-fake-video-capture="C:\Users\user\Desktop\test\bridge_far_cif.y4m"',
'--allow-file-access',
'--allow-running-insecure-content',
]
}
}
},
include: {
I: './steps_file.js'
},
bootstrap: null,
mocha: {},
name: 'test',
translation: 'ru-RU'
}