Ver código fonte

DFLayoutVideoField quality control

Kenric Nugteren 2 anos atrás
pai
commit
9b484c8a11

+ 15 - 0
InABox.Core/DigitalForms/Layouts/Fields/DFLayoutVideoField/DFLayoutVideoFieldProperties.cs

@@ -4,8 +4,23 @@ using System.Text;
 
 namespace InABox.Core
 {
+
     public class DFLayoutVideoFieldProperties : DFLayoutFieldProperties<byte[]>
     {
+        public enum VideoQuality
+        {
+            Default,
+            Low,
+            Medium,
+            High
+        }
+
+        [IntegerEditor(ToolTip = "Maximum video length (sec)")]
+        public int MaximumVideoLength { get; set; }
+
+        [EnumLookupEditor(typeof(VideoQuality))]
+        public VideoQuality Quality { get; set; } = VideoQuality.Low;
+
         public override string FormatValue(object? value)
         {
             return value != null ? "Yes" : "";