mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-19 04:56:43 +00: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))
|
||||
{
|
||||
var fileNames = FFMpegDownloader.AutoDownloadFFMpegSuite();
|
||||
var fileNames = FFMpegDownloader.DownloadFFMpegSuite();
|
||||
Assert.IsTrue(fileNames.Count == 3);
|
||||
}
|
||||
else
|
||||
|
@ -26,7 +26,7 @@ public void GetLatestFFMpegTest()
|
|||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
var fileNames = FFMpegDownloader.AutoDownloadFFMpeg();
|
||||
var fileNames = FFMpegDownloader.DownloadFFMpeg();
|
||||
Assert.IsTrue(fileNames.Count == 1);
|
||||
}
|
||||
else
|
||||
|
@ -40,7 +40,7 @@ public void GetLatestFFProbeTest()
|
|||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
var fileNames = FFMpegDownloader.AutoDownloadFFProbe();
|
||||
var fileNames = FFMpegDownloader.DownloadFFProbe();
|
||||
Assert.IsTrue(fileNames.Count == 1);
|
||||
}
|
||||
else
|
||||
|
@ -54,7 +54,7 @@ public void GetLatestFFPlayTest()
|
|||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
var fileNames = FFMpegDownloader.AutoDownloadFFPlay();
|
||||
var fileNames = FFMpegDownloader.DownloadFFPlay();
|
||||
Assert.IsTrue(fileNames.Count == 1);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -53,12 +53,12 @@ public enum FFMpegVersions
|
|||
/// Downloads the latest FFMpeg suite binaries to bin directory.
|
||||
/// </summary>
|
||||
/// <param name="version"></param>
|
||||
/// <returns></returns>
|
||||
public static List<string> AutoDownloadFFMpegSuite(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
||||
/// <returns>Names of the binary that was saved to bin directory</returns>
|
||||
public static List<string> DownloadFFMpegSuite(FFMpegVersions version = FFMpegVersions.V4_4_1)
|
||||
{
|
||||
var files = AutoDownloadFFMpeg(version);
|
||||
files.AddRange(AutoDownloadFFProbe(version));
|
||||
files.AddRange(AutoDownloadFFPlay(version));
|
||||
var files = DownloadFFMpeg(version);
|
||||
files.AddRange(DownloadFFProbe(version));
|
||||
files.AddRange(DownloadFFPlay(version));
|
||||
|
||||
return files;
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ public static List<string> AutoDownloadFFMpegSuite(FFMpegVersions version = FFMp
|
|||
/// </summary>
|
||||
/// <param name="version"></param>
|
||||
/// <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
|
||||
? new Uri(Windows64FFMpegDownloadUrls[version])
|
||||
|
@ -86,7 +86,7 @@ public static List<string> AutoDownloadFFMpeg(FFMpegVersions version = FFMpegVer
|
|||
/// </summary>
|
||||
/// <param name="version"></param>
|
||||
/// <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
|
||||
? new Uri(Windows64FFMpegDownloadUrls[version].Replace("ffmpeg", "ffprobe"))
|
||||
|
@ -104,7 +104,7 @@ public static List<string> AutoDownloadFFProbe(FFMpegVersions version = FFMpegVe
|
|||
/// </summary>
|
||||
/// <param name="version"></param>
|
||||
/// <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
|
||||
? new Uri(Windows64FFMpegDownloadUrls[version].Replace("ffmpeg", "ffplay"))
|
||||
|
|
Loading…
Reference in a new issue