public static String fetchMediaPath(MediaFile media, String browserName) {
    String extension;
    if (media.getType().equals(MediaFileType.Video)) {
      if (browserName.equalsIgnoreCase("chrome")) {
        extension = ".y4m";
      } else {
        extension = ".mp4";
      }
    } else {
      extension = ".wav";
    }
    return media.getFilepath() + extension;
  }
Fetch media path string.

@param media the media
@param browserName the browser name
@return the string
KITE-Framework/src/main/java/org/webrtc/kite/Utils.java