Add C# binding for VideoView.Underlay property. 41/155941/1
authorFeng Jin <feng16.jin@samsung.com>
Mon, 16 Oct 2017 13:07:04 +0000 (21:07 +0800)
committerFeng Jin <feng16.jin@samsung.com>
Mon, 16 Oct 2017 13:08:46 +0000 (21:08 +0800)
Change-Id: I9c468ee093d9543a7ac6b8ee8b36c149942439b8
Signed-off-by: Feng Jin <feng16.jin@samsung.com>
Tizen.NUI/src/internal/NDalicPINVOKE.cs
Tizen.NUI/src/public/BaseComponents/VideoView.cs

index cf9662c..950fa82 100755 (executable)
@@ -9682,6 +9682,9 @@ class NDalicPINVOKE {
   [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_VideoView_Property_VOLUME_get")]
   public static extern int VideoView_Property_VOLUME_get();
 
+  [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_VideoView_Property_UNDERLAY_get")]
+  public static extern int VideoView_Property_UNDERLAY_get();
+
   [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_new_VideoView_Property")]
   public static extern global::System.IntPtr new_VideoView_Property();
 
index a70d5cb..211ea5e 100755 (executable)
@@ -150,6 +150,7 @@ namespace Tizen.NUI.BaseComponents
             internal static readonly int LOOPING = NDalicPINVOKE.VideoView_Property_LOOPING_get();
             internal static readonly int MUTED = NDalicPINVOKE.VideoView_Property_MUTED_get();
             internal static readonly int VOLUME = NDalicPINVOKE.VideoView_Property_VOLUME_get();
+            internal static readonly int UNDERLAY = NDalicPINVOKE.VideoView_Property_UNDERLAY_get();
         }
 
         /// <summary>
@@ -306,6 +307,25 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+        /// <summary>
+        /// Video rendering by underlay, true or false.<br />
+        /// This shows video composited underneath the window by the system. This means it may ignore rotation of the video-view.
+        /// </summary>
+        /// <since_tizen> 4 </since_tizen>
+        public bool Underlay
+        {
+            get
+            {
+                bool temp = false;
+                GetProperty(VideoView.Property.UNDERLAY).Get(out temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(VideoView.Property.UNDERLAY, new PropertyValue(value));
+            }
+        }
+
     }
 
 }