From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Wed, 4 Dec 2019 03:45:18 +0000 (+0900) Subject: [NUI] Binding VideoView::New with swCodec parameter (#1155) (#1162) X-Git-Tag: accepted/tizen/5.5/unified/20191205.090152~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32a31578cfa3a53f3f6c2e3460cacbcc1455fbf3;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Binding VideoView::New with swCodec parameter (#1155) (#1162) Signed-off-by: huiyu.eun --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.VideoView.cs b/src/Tizen.NUI/src/internal/Interop/Interop.VideoView.cs index 88c39a6..ff017e2 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.VideoView.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.VideoView.cs @@ -35,6 +35,12 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_VideoView_New__SWIG_1")] public static extern global::System.IntPtr VideoView_New__SWIG_1(string jarg1); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_VideoView_New__SWIG_2")] + public static extern global::System.IntPtr VideoView_New__SWIG_2(bool swCodec); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_VideoView_New__SWIG_3")] + public static extern global::System.IntPtr VideoView_New__SWIG_3(string jarg1, bool swCodec); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_VideoView__SWIG_0")] public static extern global::System.IntPtr new_VideoView__SWIG_0(); diff --git a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs index f03ccef..979b6dd 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs @@ -154,6 +154,29 @@ namespace Tizen.NUI.BaseComponents if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } + /// + /// Creates an initialized VideoView.
+ /// If the string is empty, VideoView will not display anything.
+ ///
+ /// Video rendering by H/W codec if false. + [EditorBrowsable(EditorBrowsableState.Never)] + public VideoView(bool swCodec) : this(Interop.VideoView.VideoView_New__SWIG_2(swCodec), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Creates an initialized VideoView.
+ /// If the string is empty, VideoView will not display anything.
+ ///
+ /// The URL of the video resource to display. + /// Video rendering by H/W codec if false. + [EditorBrowsable(EditorBrowsableState.Never)] + public VideoView(string url, bool swCodec) : this(Interop.VideoView.VideoView_New__SWIG_3(url, swCodec), true) + { + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + internal VideoView(VideoView videoView) : this(Interop.VideoView.new_VideoView__SWIG_1(VideoView.getCPtr(videoView)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();