mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
20 lines
470 B
C#
20 lines
470 B
C#
using System;
|
|
|
|
namespace FFMpegCore.FFMPEG.Argument
|
|
{
|
|
/// <summary>
|
|
/// Represents duration parameter
|
|
/// </summary>
|
|
public class DurationArgument : Argument<TimeSpan?>
|
|
{
|
|
public DurationArgument() { }
|
|
|
|
public DurationArgument(TimeSpan? value) : base(value) { }
|
|
|
|
/// <inheritdoc/>
|
|
public override string GetStringValue()
|
|
{
|
|
return !Value.HasValue ? string.Empty : $"-t {Value}";
|
|
}
|
|
}
|
|
}
|