mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-19 04:56:43 +00: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}";
|
|
}
|
|
}
|