HDR indication in streams
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -9,7 +9,8 @@ public class StreamVideo
|
||||
public int height { get; set; } // vertical resolution in pixels
|
||||
public string codec { get; set; } // ie. AVC
|
||||
public double? aspect { get; set; } // aspect ratio, ie. 1.778
|
||||
public string? hdr { get; set; } // ie. Dolby Vision / SMPTE ST 2086
|
||||
[JsonPropertyName("3d")]
|
||||
public bool is3d { get; set; }
|
||||
public double? duration { get; set; } // in seconds
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ public class StreamsPage : BasicLayout
|
||||
{
|
||||
StreamVideo a = i.video.First();
|
||||
string is3D = a.is3d ? " (3D)" : "";
|
||||
w.WriteLine($"<div class=\"video-channel\">{a.width}x{a.height} {a.codec}{is3D} {Math.Round((a.duration ?? 0) / 60)} min</div>");
|
||||
w.WriteLine($"<div class=\"video-channel\">{a.width}x{a.height} {a.codec}{is3D} {Math.Round((a.duration ?? 0) / 60)} min {a.hdr}</div>");
|
||||
}
|
||||
|
||||
if (i.audio != null && i.audio.Count != 0)
|
||||
|
||||
Reference in New Issue
Block a user