private static String writeCommand(Capability capability, BrowserSpecs specs) {
    String command = "play%20";
    if (capability.getVideo() != null && capability.getAudio() != null) {
      command += fetchMediaPath(capability.getVideo(), specs.getBrowserName())
          + "%20" + fetchMediaPath(capability.getAudio(), specs.getBrowserName());
    } else if (capability.getVideo() != null && capability.getAudio() == null) {
      command += fetchMediaPath(capability.getVideo(), specs.getBrowserName());
    } else if (capability.getVideo() == null && capability.getAudio() != null) {
      command += fetchMediaPath(capability.getAudio(), specs.getBrowserName());
    } else {
      logger.info("No file provided.");
    }
    return command + "%20&";
  }
Create common firefox option to create firefox web driver

@param capability the Client capability
@param specs the Client browser specs
@return the firefox option
KITE-Framework/src/main/java/org/webrtc/kite/WebDriverFactory.java