From 589a5eaef6cc620b9220872a60cf81c82f80be66 Mon Sep 17 00:00:00 2001 From: Feng Jin Date: Mon, 16 Oct 2017 21:24:01 +0800 Subject: [PATCH] Add C# binding for VideoView.Underlay property. Change-Id: I53806fad483e9677f13d3026d73b9dbdfcd896c8 Signed-off-by: Feng Jin --- src/Tizen.NUI/src/internal/NDalicPINVOKE.cs | 3 +++ src/Tizen.NUI/src/public/BaseComponents/VideoView.cs | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs index f295f0b..2fb9b90 100755 --- a/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/NDalicPINVOKE.cs @@ -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(); diff --git a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs index 974dd9b..88fd0ed 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs @@ -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(); } /// @@ -329,6 +330,25 @@ namespace Tizen.NUI.BaseComponents } } + /// + /// Video rendering by underlay, true or false.
+ /// This shows video composited underneath the window by the system. This means it may ignore rotation of the video-view. + ///
+ /// 4 + 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 -- 2.7.4