added subtitle parsing stubs

This commit is contained in:
Luke Pulverenti
2014-05-05 10:45:45 -04:00
parent 28f7aa5b5e
commit e1dd361c7b
8 changed files with 96 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
using System.IO;
namespace MediaBrowser.MediaEncoding.Subtitles
{
public interface ISubtitleParser
{
SubtitleInfo Parse(Stream stream);
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MediaBrowser.MediaEncoding.Subtitles
{
public class SrtParser
{
public SubtitleInfo Parse(Stream stream)
{
throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MediaBrowser.MediaEncoding.Subtitles
{
public class SsaParser
{
public SubtitleInfo Parse(Stream stream)
{
throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,22 @@
using System.Collections.Generic;
namespace MediaBrowser.MediaEncoding.Subtitles
{
public class SubtitleInfo
{
public List<SubtitleTrackEvent> TrackEvents { get; set; }
public SubtitleInfo()
{
TrackEvents = new List<SubtitleTrackEvent>();
}
}
public class SubtitleTrackEvent
{
public string Id { get; set; }
public string Text { get; set; }
public long StartPositionTicks { get; set; }
public long EndPositionTicks { get; set; }
}
}