예제 #1
0
 /// <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);
 }
예제 #2
0
 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));
 }