Add GetNativePlayerHandle() to pass native player handle upto NUI 70/224170/2
authorDongsug Song <dongsug.song@samsung.com>
Fri, 7 Feb 2020 01:31:35 +0000 (10:31 +0900)
committerDongsug Song <dongsug.song@samsung.com>
Wed, 12 Feb 2020 00:42:33 +0000 (09:42 +0900)
Change-Id: I2cee5d6cb21bb4ec728496b9da910d57baf59b22
Signed-off-by: Dongsug Song <dongsug.song@samsung.com>
dali-csharp-binder/src/dali_wrap.cpp

index 2ffbb44..85a37e3 100755 (executable)
@@ -478,6 +478,9 @@ void SWIG_CSharpException(int code, const char *msg) {
 
 #include <dali/integration-api/debug.h>
 
+#include <dali-toolkit/devel-api/controls/video-view/video-view-devel.h>
+
+
 // 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<char*>(e.what())); return 0;
+      };
+    } catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(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 ;