Files
VDownload/VDownload.Models/VideoDownloadOptions.cs
Mateusz Skoczek e3ec5c3a48 twitch vod downloading done
ffmpeg essentials

fix

Project reorganized

git lfs

ffmpeg removed

ffmpeg added
2024-02-22 02:25:13 +01:00

45 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VDownload.Models
{
public class VideoDownloadOptions
{
#region FIELDS
private readonly TimeSpan _originalDuration;
#endregion
#region PROPERTIES
public required VideoStream SelectedStream { get; set; }
public required TimeSpan TrimStart { get; set; }
public required TimeSpan TrimEnd { get; set; }
public required MediaType MediaType { get; set; }
public required string Directory { get; set; }
public required string Filename { get; set; }
public required string Extension { get; set; }
public TimeSpan DurationAfterTrim => TrimEnd - TrimStart;
public bool IsTrimmed => _originalDuration != DurationAfterTrim;
#endregion
#region CONSTRUCTORS
public VideoDownloadOptions(TimeSpan originalDuration)
{
_originalDuration = originalDuration;
}
#endregion
}
}