mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
22340a4575
Former-commit-id: 73531b3947
26 lines
589 B
C#
26 lines
589 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
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) => Task.CompletedTask;
|
|
|
|
public void Pre() { }
|
|
|
|
public void Post() { }
|
|
|
|
public string Text => $"-i {Device}";
|
|
}
|
|
}
|