/// <summary> /// Get all the hash info and video/audio info for a video file /// </summary> /// <param name="fileName"></param> /// <param name="hashInfo"></param> /// <param name="vidInfo"></param> public static void GetVideoInfo(string fileName, ref Hashes hashInfo, ref MediaInfoResult vidInfo, bool forceRefresh) { hashInfo = Hasher.CalculateHashes(fileName, null); if (vidInfo == null) { vidInfo = new MediaInfoResult(); } MediaInfoReader.ReadMediaInfo(fileName, forceRefresh, ref vidInfo); }
public static Hashes GetHashInfo(string fileName, bool forceRefresh, JMMFileHelper.Hasher.OnHashProgress hashProgress, bool getCRC32, bool getMD5, bool getSHA1) { return(Hasher.CalculateHashes(fileName, hashProgress, getCRC32, getMD5, getSHA1)); }