I am trying to automate a website that has a webcam stream in it. In order to automate it, I need some way to fake a webcam.
I know the option -use-fake-device-for-media-stream
simulates a webcam in Chrome. This is working for me in Chrome. Now I need to get the same working in Firefox.
I got the following information from internet while researching on this.
"In Firefox, a special fake:true
variable in the getUserMedia()
calls will achieve this".
I did not understand how to code this up. Can anyone advice please? I am using java based selenium.