Split into legacy (Framework 4.8) and .NET 8 projects, WIP .NET 8 fixes

This commit is contained in:
N00MKRAD
2024-08-12 10:47:19 +02:00
parent 6c406a4846
commit b520d7212d
340 changed files with 50433 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using Flowframes.Extensions;
namespace Flowframes.Data.Streams
{
public class SubtitleStream : Stream
{
public bool Bitmap { get; }
public SubtitleStream(string language, string title, string codec, string codecLong, bool bitmap)
{
base.Type = StreamType.Subtitle;
Language = language;
Title = title;
Codec = codec;
CodecLong = codecLong;
Bitmap = bitmap;
}
public override string ToString()
{
string lang = string.IsNullOrWhiteSpace(Language.Trim()) ? "?" : Language;
string ttl = string.IsNullOrWhiteSpace(Title.Trim()) ? "None" : Title;
return $"{base.ToString()} - Language: {lang} - Title: {ttl} - Bitmap-based: {Bitmap.ToString().ToTitleCase()}";
}
}
}