Chrome: fake microphone input for test purpose

南楼画角 提交于 2019-12-22 04:18:18

问题


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.



来源:https://stackoverflow.com/questions/23340886/chrome-fake-microphone-input-for-test-purpose

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!