Add the synchronization between Ui and Video player
[platform/core/uifw/dali-adaptor.git] / dali / internal / video / common / video-player-impl.cpp
index 64ed46a..7fd5bd8 100755 (executable)
@@ -77,7 +77,7 @@ VideoPlayer::~VideoPlayer()
   }
 }
 
-void VideoPlayer::Initialize()
+void VideoPlayer::Initialize( Dali::Actor actor, VideoSyncMode syncMode )
 {
   char* error = NULL;
 
@@ -99,7 +99,7 @@ void VideoPlayer::Initialize()
     return;
   }
 
-  mPlugin = mCreateVideoPlayerPtr();
+  mPlugin = mCreateVideoPlayerPtr( actor, syncMode );
 
   if( mPlugin == NULL )
   {
@@ -343,6 +343,22 @@ Any VideoPlayer::GetMediaPlayer()
   return NULL;
 }
 
+void VideoPlayer::StartSynchronization()
+{
+  if( mPlugin != NULL )
+  {
+    mPlugin->StartSynchronization();
+  }
+}
+
+void VideoPlayer::FinishSynchronization()
+{
+  if( mPlugin != NULL )
+  {
+    mPlugin->FinishSynchronization();
+  }
+}
+
 } // namespace Adaptor;
 } // namespace Internal;
 } // namespace Dali;