diff options
author | Feng Jin <feng16.jin@samsung.com> | 2017-10-16 21:07:04 +0800 |
---|---|---|
committer | Feng Jin <feng16.jin@samsung.com> | 2017-10-16 21:08:46 +0800 |
commit | fbbf4a192b75ebc6bee9fa69dd80f37f04be9a15 (patch) | |
tree | 6034f879857ca44e4055505096b82f2654253d5d | |
parent | 681eedd9a33287ec03020003ad38d0ec18e5fbd8 (diff) | |
download | nui-fbbf4a192b75ebc6bee9fa69dd80f37f04be9a15.tar.gz nui-fbbf4a192b75ebc6bee9fa69dd80f37f04be9a15.tar.bz2 nui-fbbf4a192b75ebc6bee9fa69dd80f37f04be9a15.zip |
Add C# binding for VideoView.Underlay property.
Change-Id: I9c468ee093d9543a7ac6b8ee8b36c149942439b8
Signed-off-by: Feng Jin <feng16.jin@samsung.com>
-rwxr-xr-x | Tizen.NUI/src/internal/NDalicPINVOKE.cs | 3 | ||||
-rwxr-xr-x | Tizen.NUI/src/public/BaseComponents/VideoView.cs | 20 |
2 files changed, 23 insertions, 0 deletions
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(); } /// <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)); + } + } + } } |