I was looking for a way to automate WebRTC audio testing and ran into this flag
--use-file-for-fake-audio-capture=/path/to/file.wav
This seem perfect for what I need but I am wondering whether it is possible to provide a link instead of a local path?
The issue is that automation is currently done using Browserstack so the file would not be available locally when running tests through it.
Anyone have experience with this?
'chromeOptions' : {
'args' : ["--use-fake-device-for-media-stream", "--use-fake-ui-for-media-stream",
"--use-file-for-fake-audio-capture=http://www.signalogic.com/melp/EngSamples/Orig/female.wav"]
},
Edit: actually I am just having issues getting this working locally. Does anyone know where the file should be located? Currently still only hearing beeps for automation.
My options in webdriver
'chromeOptions' : {
'args': ["--use-file-for-fake-audio-capture=random_audio.wav"]
},