mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-15 02:25:44 +00:00
25 lines
500 B
C#
25 lines
500 B
C#
namespace FFMpegCore.Arguments;
|
|
|
|
/// <summary>
|
|
/// Represents an input device parameter
|
|
/// </summary>
|
|
public class InputDeviceArgument : IInputArgument
|
|
{
|
|
private readonly string Device;
|
|
|
|
public InputDeviceArgument(string device)
|
|
{
|
|
Device = device;
|
|
}
|
|
|
|
public Task During(CancellationToken cancellationToken = default)
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public void Pre() { }
|
|
|
|
public void Post() { }
|
|
|
|
public string Text => $"-i {Device}";
|
|
}
|