2012-07-16 12:50:44 -04:00
|
|
|
|
using System.Collections.Generic;
|
2012-08-29 08:21:56 -04:00
|
|
|
|
using ProtoBuf;
|
2012-07-12 02:55:27 -04:00
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Model.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
public class Video : BaseItem
|
|
|
|
|
|
{
|
|
|
|
|
|
public VideoType VideoType { get; set; }
|
|
|
|
|
|
|
2012-08-24 08:45:54 -04:00
|
|
|
|
public List<SubtitleStream> Subtitles { get; set; }
|
|
|
|
|
|
public List<AudioStream> AudioStreams { get; set; }
|
2012-07-12 02:55:27 -04:00
|
|
|
|
|
|
|
|
|
|
public int Height { get; set; }
|
|
|
|
|
|
public int Width { get; set; }
|
|
|
|
|
|
public string ScanType { get; set; }
|
2012-08-20 19:53:32 -04:00
|
|
|
|
public float FrameRate { get; set; }
|
2012-08-18 04:22:54 -04:00
|
|
|
|
public int BitRate { get; set; }
|
|
|
|
|
|
public string Codec { get; set; }
|
2012-07-12 02:55:27 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
2012-08-29 08:21:56 -04:00
|
|
|
|
[ProtoContract]
|
2012-07-12 02:55:27 -04:00
|
|
|
|
public class AudioStream
|
|
|
|
|
|
{
|
2012-08-29 08:21:56 -04:00
|
|
|
|
[ProtoMember(1)]
|
2012-08-20 15:16:51 -04:00
|
|
|
|
public string Codec { get; set; }
|
2012-08-29 08:21:56 -04:00
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
2012-07-12 02:55:27 -04:00
|
|
|
|
public string Language { get; set; }
|
2012-08-29 08:21:56 -04:00
|
|
|
|
|
|
|
|
|
|
[ProtoMember(3)]
|
2012-07-12 02:55:27 -04:00
|
|
|
|
public int BitRate { get; set; }
|
2012-08-29 08:21:56 -04:00
|
|
|
|
|
|
|
|
|
|
[ProtoMember(4)]
|
2012-07-12 02:55:27 -04:00
|
|
|
|
public int Channels { get; set; }
|
2012-08-29 08:21:56 -04:00
|
|
|
|
|
|
|
|
|
|
[ProtoMember(5)]
|
2012-08-13 14:19:52 -04:00
|
|
|
|
public int SampleRate { get; set; }
|
2012-08-29 08:21:56 -04:00
|
|
|
|
|
|
|
|
|
|
[ProtoMember(6)]
|
2012-08-18 04:22:54 -04:00
|
|
|
|
public bool IsDefault { get; set; }
|
2012-08-22 08:56:44 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
2012-08-29 08:21:56 -04:00
|
|
|
|
[ProtoContract]
|
2012-08-22 08:56:44 -04:00
|
|
|
|
public class SubtitleStream
|
|
|
|
|
|
{
|
2012-08-29 08:21:56 -04:00
|
|
|
|
[ProtoMember(1)]
|
2012-08-22 08:56:44 -04:00
|
|
|
|
public string Language { get; set; }
|
2012-08-29 08:21:56 -04:00
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
2012-08-22 08:56:44 -04:00
|
|
|
|
public bool IsDefault { get; set; }
|
2012-08-29 08:21:56 -04:00
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
2012-08-18 04:22:54 -04:00
|
|
|
|
public bool IsForced { get; set; }
|
2012-07-12 02:55:27 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum VideoType
|
|
|
|
|
|
{
|
2012-07-16 12:50:44 -04:00
|
|
|
|
VideoFile,
|
2012-08-23 08:59:40 -04:00
|
|
|
|
Iso,
|
2012-07-16 12:50:44 -04:00
|
|
|
|
DVD,
|
|
|
|
|
|
BluRay
|
2012-07-12 02:55:27 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|