Exemplo n.º 1
0
 public static string FindFFmpegLibrary(string name, int version)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
     {
         return(WindowsBinaries.FindFFmpegLibrary(name, version));
     }
     else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
     {
         return(MacOSBinaries.FindFFmpegLibrary(name, version));
     }
     else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
     {
         return(LinuxBinaries.FindFFmpegLibrary(name, version));
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
        public static string FindFFmpegLibrary(string name, int version)
        {
            Binaries binaries = null;

            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                binaries = new WindowsBinaries();
            }
            else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
            {
                binaries = new MacOSBinaries();
            }
            else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
            {
                binaries = new LinuxBinaries();
            }
            else
            {
                return(null);
            }

            return(binaries.FindFFmpegLibrary(name, version));
        }