Important Notice: We're experiencing email notification issues. If you've posted a question in the community forums recently, please check your profile manually for responses while we're working to fix this.

On Monday the 3rd of March, around 5pm UTC (9am PT) users may experience a brief period of downtime while one of our underlying services is under maintenance.

Eheka Pytyvõha

Emboyke pytyvõha apovai. Ndorojeruremo’ãi ehenói térã eñe’ẽmondóvo pumbyrýpe ha emoherakuãvo marandu nemba’etéva. Emombe’u tembiapo imarãkuaáva ko “Marandu iñañáva” rupive.

Kuaave

How to fake a media device/stream similar to chrome's '--use-fake-device-for-media-stream'

  • 1 Mbohovái
  • 1 oguereko ko apañuái
  • 3 Hecha
  • Mbohovái ipaháva the-edmeister

more options

Hi,

I am developing a java/selenium based application and need to fake a microphone/cam and pass media i.e. audio and/or video files to the browser.

I have been able to successfully do this in Chrome using the below code snippet:

          DesiredCapabilities capabilities = DesiredCapabilities.chrome(); 
          ChromeOptions options = new ChromeOptions();
          options.addArguments("--allow-file-access-from-files",
                                                 "--use-fake-ui-for-media-stream",
                                                 "--allow-file-access",
                                                 "--use-file-for-fake-audio-capture=D:\\PATH\\TO\\WAV\\xxx.wav",
                                                 "--use-fake-device-for-media-stream");
           capabilities.setCapability(ChromeOptions.CAPABILITY, options);
           ChromeDriver driver = new ChromeDriver(capabilities);


Are there similar options available in Firefox to achieve the same capability? If not, how can this be done? Any help will be helpful.

Thanks, John

Hi, I am developing a java/selenium based application and need to fake a microphone/cam and pass media i.e. audio and/or video files to the browser. I have been able to successfully do this in Chrome using the below code snippet: DesiredCapabilities capabilities = DesiredCapabilities.chrome(); ChromeOptions options = new ChromeOptions(); options.addArguments("--allow-file-access-from-files", "--use-fake-ui-for-media-stream", "--allow-file-access", "--use-file-for-fake-audio-capture=D:\\PATH\\TO\\WAV\\xxx.wav", "--use-fake-device-for-media-stream"); capabilities.setCapability(ChromeOptions.CAPABILITY, options); ChromeDriver driver = new ChromeDriver(capabilities); Are there similar options available in Firefox to achieve the same capability? If not, how can this be done? Any help will be helpful. Thanks, John

Moambuepyre jonsylvester87 rupive

Opaite Mbohovái (1)

more options