[ADD] New entities for library db
This commit is contained in:
36
Manager.Data/Models/LibraryContext/MediaFormatEntity.cs
Normal file
36
Manager.Data/Models/LibraryContext/MediaFormatEntity.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
namespace Manager.Data.Models.LibraryContext;
|
||||
|
||||
public class MediaFormatEntity
|
||||
{
|
||||
public required string MediaId { get; set; }
|
||||
public required string MediaPath { get; set; }
|
||||
public VideoQuality VideoQuality { get; set; } = VideoQuality.None;
|
||||
public bool IsAdaptive { get; set; }
|
||||
public string? MimeType { get; set; }
|
||||
public long Bitrate { get; set; }
|
||||
public long AverageBitrate { get; set; }
|
||||
public long LastModifiedUnixEpoch { get; set; }
|
||||
public long ContentLengthBytes { get; set; }
|
||||
public long ApproxDurationMs { get; set; }
|
||||
public int Width { get; set; }
|
||||
public int Height { get; set; }
|
||||
public double Framerate { get; set; }
|
||||
public string? QualityLabel { get; set; }
|
||||
public int AudioChannels { get; set; }
|
||||
public string? AudioSampleRate { get; set; }
|
||||
public double LoudnessDb { get; set; }
|
||||
}
|
||||
|
||||
public enum VideoQuality
|
||||
{
|
||||
P4320 = 4320,
|
||||
P2160 = 2160,
|
||||
P1440 = 1440,
|
||||
P1080 = 1080,
|
||||
P720 = 720,
|
||||
P480 = 480,
|
||||
P360 = 360,
|
||||
P240 = 240,
|
||||
P144 = 144,
|
||||
None = 0
|
||||
}
|
Reference in New Issue
Block a user