diff --git a/FFMpegCore.Test/DownloaderTests.cs b/FFMpegCore.Test/DownloaderTests.cs
index d0f1f55..52c1780 100644
--- a/FFMpegCore.Test/DownloaderTests.cs
+++ b/FFMpegCore.Test/DownloaderTests.cs
@@ -20,7 +20,7 @@ public void GetLatestSuiteTest()
Assert.Inconclusive("This test is only for Windows");
}
}
-
+
[TestMethod]
public void GetLatestFFMpegTest()
{
@@ -34,7 +34,7 @@ public void GetLatestFFMpegTest()
Assert.Inconclusive("This test is only for Windows");
}
}
-
+
[TestMethod]
public void GetLatestFFProbeTest()
{
@@ -48,7 +48,7 @@ public void GetLatestFFProbeTest()
Assert.Inconclusive("This test is only for Windows");
}
}
-
+
[TestMethod]
public void GetLatestFFPlayTest()
{
diff --git a/FFMpegCore/Helpers/FFMpegDownloader.cs b/FFMpegCore/Helpers/FFMpegDownloader.cs
index fef53b3..6705540 100644
--- a/FFMpegCore/Helpers/FFMpegDownloader.cs
+++ b/FFMpegCore/Helpers/FFMpegDownloader.cs
@@ -1,14 +1,29 @@
-using System.Net;
-using System.IO.Compression;
+using System.IO.Compression;
+using System.Net;
using System.Runtime.InteropServices;
namespace FFMpegCore.Helpers;
///
-/// Downloads the latest FFMpeg suite binaries from GitHub. Only supported for windows at the moment.
+/// Downloads the latest FFMpeg suite binaries from GitHub. Only supported for windows at the moment.
///
public class FFMpegDownloader
{
+ ///
+ /// Supported FFMpeg versions
+ ///
+ public enum FFMpegVersions
+ {
+ V4_4_1,
+ V4_2_1,
+ V4_2,
+ V4_1,
+ V4_0,
+ V3_4,
+ V3_3,
+ V3_2
+ }
+
private static readonly Dictionary Windows64FFMpegDownloadUrls = new()
{
{
@@ -42,7 +57,7 @@ public class FFMpegDownloader
{
FFMpegVersions.V3_2,
"https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v3.2/ffmpeg-3.2-win-64.zip"
- },
+ }
};
private static readonly Dictionary Windows32FFMpegDownloadUrls = new()
@@ -75,26 +90,11 @@ public class FFMpegDownloader
{
FFMpegVersions.V3_2,
"https://github.com/ffbinaries/ffbinaries-prebuilt/releases/download/v3.2/ffmpeg-3.2-win-32.zip"
- },
+ }
};
///
- /// Supported FFMpeg versions
- ///
- public enum FFMpegVersions
- {
- V4_4_1,
- V4_2_1,
- V4_2,
- V4_1,
- V4_0,
- V3_4,
- V3_3,
- V3_2
- }
-
- ///
- /// Downloads the latest FFMpeg suite binaries to bin directory.
+ /// Downloads the latest FFMpeg suite binaries to bin directory.
///
///
/// Names of the binary that was saved to bin directory
@@ -108,7 +108,7 @@ public static List DownloadFFMpegSuite(FFMpegVersions version = FFMpegVe
}
///
- /// Downloads the latest FFMpeg binaries to bin directory.
+ /// Downloads the latest FFMpeg binaries to bin directory.
///
///
///
@@ -122,7 +122,7 @@ public static List DownloadFFMpeg(FFMpegVersions version = FFMpegVersion
}
///
- /// Downloads the latest FFProbe binaries to bin directory.
+ /// Downloads the latest FFProbe binaries to bin directory.
///
///
///
@@ -136,7 +136,7 @@ public static List DownloadFFProbe(FFMpegVersions version = FFMpegVersio
}
///
- /// Downloads the latest FFPlay binaries to bin directory.
+ /// Downloads the latest FFPlay binaries to bin directory.
///
///
///
@@ -150,7 +150,7 @@ public static List DownloadFFPlay(FFMpegVersions version = FFMpegVersion
}
///
- /// Downloads the zip file from the given url and saves the binaries to bin directory.
+ /// Downloads the zip file from the given url and saves the binaries to bin directory.
///
///
///
@@ -164,7 +164,7 @@ private static List DownloadAndSave(Uri url)
}
///
- /// Downloads the zip file from the given url.
+ /// Downloads the zip file from the given url.
///
///
///
@@ -178,7 +178,7 @@ private static MemoryStream DownloadZip(Uri address)
}
///
- /// Extracts the zip file and saves the binaries to bin directory.
+ /// Extracts the zip file and saves the binaries to bin directory.
///
///
///
@@ -200,7 +200,7 @@ private static List ExtractZip(Stream zipStream)
}
///
- /// Checks if the given uri is valid.
+ /// Checks if the given uri is valid.
///
///
///