mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Methods renamed to remove auto prefix
This commit is contained in:
parent
657ee5ff5d
commit
d68ce8e953
2 changed files with 12 additions and 12 deletions
|
@ -12,7 +12,7 @@ public void GetLatestSuiteTest()
|
||||||
{
|
{
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
{
|
{
|
||||||
var fileNames = FFMpegDownloader.AutoDownloadFFMpegSuite();
|
var fileNames = FFMpegDownloader.DownloadFFMpegSuite();
|
||||||
Assert.IsTrue(fileNames.Count == 3);
|
Assert.IsTrue(fileNames.Count == 3);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -26,7 +26,7 @@ public void GetLatestFFMpegTest()
|
||||||
{
|
{
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
{
|
{
|
||||||
var fileNames = FFMpegDownloader.AutoDownloadFFMpeg();
|
var fileNames = FFMpegDownloader.DownloadFFMpeg();
|
||||||
Assert.IsTrue(fileNames.Count == 1);
|
Assert.IsTrue(fileNames.Count == 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -40,7 +40,7 @@ public void GetLatestFFProbeTest()
|
||||||
{
|
{
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
{
|
{
|
||||||
var fileNames = FFMpegDownloader.AutoDownloadFFProbe();
|
var fileNames = FFMpegDownloader.DownloadFFProbe();
|
||||||
Assert.IsTrue(fileNames.Count == 1);
|
Assert.IsTrue(fileNames.Count == 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -54,7 +54,7 @@ public void GetLatestFFPlayTest()
|
||||||
{
|
{
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
{
|
{
|
||||||
var fileNames = FFMpegDownloader.AutoDownloadFFPlay();
|
var fileNames = FFMpegDownloader.DownloadFFPlay();
|
||||||
Assert.IsTrue(fileNames.Count == 1);
|
Assert.IsTrue(fileNames.Count == 1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -53,12 +53,12 @@ public enum FFMpegVersions
|
||||||
/// Downloads the latest FFMpeg suite binaries to bin directory.
|
/// Downloads the latest FFMpeg suite binaries to bin directory.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="version"></param>
|
/// <param name="version"></param>
|
||||||
/// <returns></returns>
|
/// <returns>Names of the binary that was saved to bin directory</returns>
|
||||||
public static List<string> AutoDownloadFFMpegSuite(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
public static List<string> DownloadFFMpegSuite(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
||||||
{
|
{
|
||||||
var files = AutoDownloadFFMpeg(version);
|
var files = DownloadFFMpeg(version);
|
||||||
files.AddRange(AutoDownloadFFProbe(version));
|
files.AddRange(DownloadFFProbe(version));
|
||||||
files.AddRange(AutoDownloadFFPlay(version));
|
files.AddRange(DownloadFFPlay(version));
|
||||||
|
|
||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ public static List<string> AutoDownloadFFMpegSuite(FFMpegVersions version = FFMp
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="version"></param>
|
/// <param name="version"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> AutoDownloadFFMpeg(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
public static List<string> DownloadFFMpeg(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
||||||
{
|
{
|
||||||
var url = Environment.Is64BitProcess
|
var url = Environment.Is64BitProcess
|
||||||
? new Uri(Windows64FFMpegDownloadUrls[version])
|
? new Uri(Windows64FFMpegDownloadUrls[version])
|
||||||
|
@ -86,7 +86,7 @@ public static List<string> AutoDownloadFFMpeg(FFMpegVersions version = FFMpegVer
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="version"></param>
|
/// <param name="version"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> AutoDownloadFFProbe(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
public static List<string> DownloadFFProbe(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
||||||
{
|
{
|
||||||
var url = Environment.Is64BitProcess
|
var url = Environment.Is64BitProcess
|
||||||
? new Uri(Windows64FFMpegDownloadUrls[version].Replace("ffmpeg", "ffprobe"))
|
? new Uri(Windows64FFMpegDownloadUrls[version].Replace("ffmpeg", "ffprobe"))
|
||||||
|
@ -104,7 +104,7 @@ public static List<string> AutoDownloadFFProbe(FFMpegVersions version = FFMpegVe
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="version"></param>
|
/// <param name="version"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static List<string> AutoDownloadFFPlay(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
public static List<string> DownloadFFPlay(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
||||||
{
|
{
|
||||||
var url = Environment.Is64BitProcess
|
var url = Environment.Is64BitProcess
|
||||||
? new Uri(Windows64FFMpegDownloadUrls[version].Replace("ffmpeg", "ffplay"))
|
? new Uri(Windows64FFMpegDownloadUrls[version].Replace("ffmpeg", "ffplay"))
|
||||||
|
|
Loading…
Reference in a new issue