mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-02-24 12:12:36 +01:00
21 lines
690 B
C#
21 lines
690 B
C#
namespace Flowframes.Data.Streams
|
|
{
|
|
public class Stream
|
|
{
|
|
public enum StreamType { Video, Audio, Subtitle, Data, Attachment, Unknown }
|
|
public StreamType Type;
|
|
public int Index = -1;
|
|
public bool IsDefault = false;
|
|
public string Codec = "";
|
|
public string CodecLong = "";
|
|
public string Language = "";
|
|
public string LanguageFmt => Language.Trim().IsEmpty() ? "N/A" : Language.Replace("und", "N/A").Upper();
|
|
public string Title = "";
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Stream #{Index.ToString().PadLeft(2, '0')}{(IsDefault ? "*" : "")} {Type} ({Codec})";
|
|
}
|
|
}
|
|
}
|