mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
27 lines
632 B
C#
27 lines
632 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FFMpegCore.Arguments
|
|
{
|
|
/// <summary>
|
|
/// Represents outputting to url using supported protocols
|
|
/// See http://ffmpeg.org/ffmpeg-protocols.html
|
|
/// </summary>
|
|
public class OutputUrlArgument : IOutputArgument
|
|
{
|
|
public readonly string Url;
|
|
|
|
public OutputUrlArgument(string url)
|
|
{
|
|
Url = url;
|
|
}
|
|
|
|
public void Post() { }
|
|
|
|
public Task During(CancellationToken cancellationToken = default) => Task.CompletedTask;
|
|
|
|
public void Pre() { }
|
|
|
|
public string Text => Url;
|
|
}
|
|
}
|