title: How can I pass a fake media stream to firefox from command line?
body: <p>I am developing a java/selenium based application and need to pass media i.e. audio and/or video files to the browser.</p>
  
  <p>I have been able to successfully do this in Chrome using the below code snippet:</p>
  
  <pre><code>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);
  </code></pre>
  
  <p>Are there similar options available in Firefox 33.1 to achieve the same capability?</p>
  
  <p>If not, how can this be done?</p>