Skip to content

Commit

Permalink
#1833 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Dec 25, 2024
1 parent 0921295 commit a34fc75
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using starsky.foundation.video.GetDependencies.Models;

namespace starsky.foundation.video.GetDependencies.Interfaces;

public interface IFfMpegDownload
{

Task<FfmpegDownloadStatus> DownloadFfMpeg();
}
25 changes: 25 additions & 0 deletions starsky/starsky.foundation.video/VideoProcess.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
using starsky.foundation.video.GetDependencies.Interfaces;
using starsky.foundation.video.GetDependencies.Models;

namespace starsky.foundation.video;

public class VideoProcess
{
private readonly IFfMpegDownload _ffMpegDownload;

public VideoProcess(IFfMpegDownload ffMpegDownload)
{
_ffMpegDownload = ffMpegDownload;
}

public async Task Run()
{
var downloadStatus = await _ffMpegDownload.DownloadFfMpeg();
if ( downloadStatus != FfmpegDownloadStatus.Ok )
{
return;
}
// Do something with the downloaded FFMpeg
}

}

0 comments on commit a34fc75

Please sign in to comment.