-->

Chrome: fake microphone input for test purpose

2020-08-22 07:46发布

问题:

For testing purpose with protractor, I need to simulate audio input from the microphone on a computer without microphone. With the "--use-fake-device-for-media-stream" flag, Chrome can simulate a fake microphone. However, no input is coming from the fake microphone so my tests fails.

Is it possible to simulate sound getting out of the microphone ?

Thanks !

回答1:

I get fake video and microphone input using two chrome flags

--use-fake-device-for-media-stream

--use-fake-ui-for-media-stream

Try with the two flags together.