From 0afb3188299c54a789e8b498b519bf04f46f628d Mon Sep 17 00:00:00 2001 From: Dongsug Song Date: Fri, 7 Feb 2020 10:31:35 +0900 Subject: [PATCH] Add GetNativePlayerHandle() to pass native player handle upto NUI Change-Id: I2cee5d6cb21bb4ec728496b9da910d57baf59b22 Signed-off-by: Dongsug Song --- dali-csharp-binder/src/dali_wrap.cpp | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/dali-csharp-binder/src/dali_wrap.cpp b/dali-csharp-binder/src/dali_wrap.cpp index 2ffbb44..85a37e3 100755 --- a/dali-csharp-binder/src/dali_wrap.cpp +++ b/dali-csharp-binder/src/dali_wrap.cpp @@ -478,6 +478,9 @@ void SWIG_CSharpException(int code, const char *msg) { #include +#include + + // add here SWIG version check #if defined(_MSC_VER) // Microsoft Visual C++ 6.0 @@ -86658,6 +86661,42 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VideoView_FinishedSignal(void * jarg1) return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_VideoView_GetNativePlayerHandle( void * jarg1 ) +{ + Dali::Toolkit::VideoView *arg1 = (Dali::Toolkit::VideoView *)jarg1; + if( arg1 == nullptr ) + { + DALI_LOG_ERROR("VideoView is nullptr!"); + return nullptr; + } + void * ret = nullptr; + { + try{ + + Dali::Any result = Toolkit::DevelVideoView::GetMediaPlayer( *arg1 ); + ret = Dali::AnyCast< void * >( result ); + + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(e.what())); return 0; + }; + } catch (Dali::DaliException e) { + { + SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; + }; + } catch (...) { + { + SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; + }; + } + } + return ret; +} + SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Popup_Property_TITLE_get() { int jresult ; -- 2.7.4