Closed captions
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FoxTube.Classes
|
||||
{
|
||||
public class Caption
|
||||
{
|
||||
public TimeSpan Start { get; private set; }
|
||||
public TimeSpan Duration { get; private set; }
|
||||
public TimeSpan End
|
||||
{
|
||||
get { return Start + Duration; }
|
||||
}
|
||||
public string Text { get; private set; }
|
||||
|
||||
public Caption(int startTime, int duration, string text)
|
||||
{
|
||||
Start = TimeSpan.FromMilliseconds(startTime);
|
||||
Duration = TimeSpan.FromMilliseconds(duration);
|
||||
Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user