public static boolean isVideo(String mimeType){
  if (mimeType != null) {
    if (mimeType.startsWith("video/"))     return true;
 else     return false;
  }
 else {
    return false;
  }
}

public static boolean isVideo ( String mimeType ) { if ( mimeType != null ) { if ( mimeType . startsWith ( "video/" ) ) return true ; else return false ; } else { return false ; } }
returns true if the mime type is a standard video mime type
