Add C# binding for VideoView.Underlay property. 45/155945/1
authorFeng Jin <feng16.jin@samsung.com>
Mon, 16 Oct 2017 13:24:01 +0000 (21:24 +0800)
committerFeng Jin <feng16.jin@samsung.com>
Mon, 16 Oct 2017 13:25:13 +0000 (21:25 +0800)
Change-Id: I53806fad483e9677f13d3026d73b9dbdfcd896c8
Signed-off-by: Feng Jin <feng16.jin@samsung.com>
src/Tizen.NUI/src/internal/NDalicPINVOKE.cs
src/Tizen.NUI/src/public/BaseComponents/VideoView.cs

index f295f0b..2fb9b90 100755 (executable)
@@ -9683,6 +9683,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 974dd9b..88fd0ed 100755 (executable)
@@ -157,6 +157,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>
@@ -329,6 +330,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));
+            }
+        }
+
     }
 
 }
\ No newline at end of file