mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 01:55:45 +00:00
Rename download function
This commit is contained in:
parent
8f2d3d7125
commit
3404d63655
2 changed files with 3 additions and 3 deletions
|
|
@ -17,8 +17,8 @@ public static class FFMpegDownloader
|
|||
/// <param name="options">used for specifying binary folder to download binaries into. If not provided, GlobalFFOptions are used</param>
|
||||
/// <param name="platformOverride">used to explicitly state the os and architecture you want to download</param>
|
||||
/// <returns>a list of the binaries that have been successfully downloaded</returns>
|
||||
public static async Task<List<string>> DownloadFFMpegSuite(
|
||||
FFMpegVersions version = FFMpegVersions.Latest,
|
||||
public static async Task<List<string>> DownloadBinaries(
|
||||
FFMpegBinaries binaries = FFMpegBinaries.FFMpeg | FFMpegBinaries.FFProbe,
|
||||
FFOptions? options = null,
|
||||
SupportedPlatforms? platformOverride = null)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public class DownloaderTests
|
|||
public async Task GetSpecificVersionTest()
|
||||
{
|
||||
var options = new FFOptions { BinaryFolder = Path.GetTempPath() };
|
||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1, options: options);
|
||||
var binaries = await FFMpegDownloader.DownloadBinaries(FFMpegVersions.V6_1, options: options);
|
||||
try
|
||||
{
|
||||
Assert.HasCount(2, binaries);
|
||||
|
|
@ -26,7 +26,7 @@ public class DownloaderTests
|
|||
public async Task GetAllLatestSuiteTest()
|
||||
{
|
||||
var options = new FFOptions { BinaryFolder = Path.GetTempPath() };
|
||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite(options: options);
|
||||
var binaries = await FFMpegDownloader.DownloadBinaries(options: options);
|
||||
try
|
||||
{
|
||||
Assert.HasCount(2, binaries);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue