From fbbf4a192b75ebc6bee9fa69dd80f37f04be9a15 Mon Sep 17 00:00:00 2001 From: Feng Jin Date: Mon, 16 Oct 2017 21:07:04 +0800 Subject: Add C# binding for VideoView.Underlay property. Change-Id: I9c468ee093d9543a7ac6b8ee8b36c149942439b8 Signed-off-by: Feng Jin --- Tizen.NUI/src/internal/NDalicPINVOKE.cs | 3 +++ Tizen.NUI/src/public/BaseComponents/VideoView.cs | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Tizen.NUI/src/internal/NDalicPINVOKE.cs b/Tizen.NUI/src/internal/NDalicPINVOKE.cs index cf9662c..950fa82 100755 --- a/Tizen.NUI/src/internal/NDalicPINVOKE.cs +++ b/Tizen.NUI/src/internal/NDalicPINVOKE.cs @@ -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(); diff --git a/Tizen.NUI/src/public/BaseComponents/VideoView.cs b/Tizen.NUI/src/public/BaseComponents/VideoView.cs index a70d5cb..211ea5e 100755 --- a/Tizen.NUI/src/public/BaseComponents/VideoView.cs +++ b/Tizen.NUI/src/public/BaseComponents/VideoView.cs @@ -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(); } /// @@ -306,6 +307,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)); + } + } + } } -- cgit v1.2.3