Business.MediaInfoReader.LoadInfo C# (CSharp) Метод

LoadInfo() публичный Метод

Loads media information of specified file.
public LoadInfo ( string fileName ) : void
fileName string The full path of the file to read.
Результат void
        public void LoadInfo(string fileName) {
            lastMedia = ReadMediaFile(fileName);
        }

Usage Example

 /// <summary>
 /// Applies 432hz auto-pitch if file PixelAspectRatio is 1 and FPS can be read.
 /// </summary>
 /// <param name="video">The video for which to create the auto-pitch script file.</param>
 /// <returns>Whether auto-pitch is enabled for this video.</returns>
 public static bool AppyAutoPitch(Media video) {
     using (MediaInfoReader InfoReader = new MediaInfoReader()) {
         InfoReader.LoadInfo(Settings.NaturalGroundingFolder + video.FileName);
         if (Settings.SavedFile.ChangeAudioPitch && InfoReader.PixelAspectRatio == 1 && !video.DisablePitch && (InfoReader.BitDepth ?? 8) == 8) {
             CreateScript(Settings.NaturalGroundingFolder + video.FileName, InfoReader);
             return true;
         } else
             return false;
     }
 }
All Usage Examples Of Business.MediaInfoReader::LoadInfo