From: Feng Jin Date: Mon, 16 Oct 2017 13:24:01 +0000 (+0800) Subject: Add C# binding for VideoView.Underlay property. X-Git-Tag: preview1-00311~6^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=589a5eaef6cc620b9220872a60cf81c82f80be66;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Add C# binding for VideoView.Underlay property. Change-Id: I53806fad483e9677f13d3026d73b9dbdfcd896c8 Signed-off-by: Feng Jin --- 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