From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Tue, 3 Dec 2019 00:54:11 +0000 (+0900) Subject: [NUI] Binding VideoView::New with swCodec parameter (#1155) X-Git-Tag: accepted/tizen/unified/20210219.040944~935 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=659591115f49908997ffe610ad4f6bd35038f9ca;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Binding VideoView::New with swCodec parameter (#1155) 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 572ac5d..e7c415d 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs @@ -153,6 +153,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();