jellyfin/MediaBrowser.Model/Entities/Video.cs

64 lines
1.4 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using ProtoBuf;
2012-07-12 06:55:27 +00:00
namespace MediaBrowser.Model.Entities
{
public class Video : BaseItem
{
public VideoType VideoType { get; set; }
public List<SubtitleStream> Subtitles { get; set; }
public List<AudioStream> AudioStreams { get; set; }
2012-07-12 06:55:27 +00:00
public int Height { get; set; }
public int Width { get; set; }
public string ScanType { get; set; }
public float FrameRate { get; set; }
public int BitRate { get; set; }
public string Codec { get; set; }
2012-07-12 06:55:27 +00:00
}
[ProtoContract]
2012-07-12 06:55:27 +00:00
public class AudioStream
{
[ProtoMember(1)]
public string Codec { get; set; }
[ProtoMember(2)]
2012-07-12 06:55:27 +00:00
public string Language { get; set; }
[ProtoMember(3)]
2012-07-12 06:55:27 +00:00
public int BitRate { get; set; }
[ProtoMember(4)]
2012-07-12 06:55:27 +00:00
public int Channels { get; set; }
[ProtoMember(5)]
public int SampleRate { get; set; }
[ProtoMember(6)]
public bool IsDefault { get; set; }
2012-08-22 12:56:44 +00:00
}
[ProtoContract]
2012-08-22 12:56:44 +00:00
public class SubtitleStream
{
[ProtoMember(1)]
2012-08-22 12:56:44 +00:00
public string Language { get; set; }
[ProtoMember(2)]
2012-08-22 12:56:44 +00:00
public bool IsDefault { get; set; }
2012-08-29 19:37:05 +00:00
[ProtoMember(3)]
public bool IsForced { get; set; }
2012-07-12 06:55:27 +00:00
}
public enum VideoType
{
VideoFile,
Iso,
DVD,
BluRay
2012-07-12 06:55:27 +00:00
}
}