namespace // unnamed namespace
{
-#if _GLIBCXX_USE_CXX11_ABI
-const char* VIDEO_PLUGIN_SO( "libdali-video-player-plugin.so" );
-#else
-const char* VIDEO_PLUGIN_SO( "libdali-video-player-plugin-cxx03.so" );
-#endif
+const char* VIDEO_PLUGIN_SO( "libdali2-video-player-plugin.so" );
Dali::BaseHandle Create()
{
}
}
-void VideoPlayer::Initialize()
+void VideoPlayer::Initialize( Dali::Actor actor, VideoSyncMode syncMode )
{
char* error = NULL;
}
mCreateVideoPlayerPtr = reinterpret_cast< CreateVideoPlayerFunction >( dlsym( mHandle, "CreateVideoPlayerPlugin" ) );
- if( mCreateVideoPlayerPtr == NULL )
+
+ error = dlerror();
+ if( mCreateVideoPlayerPtr == NULL || error != NULL )
{
DALI_LOG_ERROR( "Can't load symbol CreateVideoPlayerPlugin(), error: %s\n", error );
return;
}
- mPlugin = mCreateVideoPlayerPtr();
+ mPlugin = mCreateVideoPlayerPtr( actor, syncMode );
if( mPlugin == NULL )
{
}
mDestroyVideoPlayerPtr = reinterpret_cast< DestroyVideoPlayerFunction >( dlsym( mHandle, "DestroyVideoPlayerPlugin" ) );
- if( mDestroyVideoPlayerPtr == NULL )
+
+ error = dlerror();
+ if( mDestroyVideoPlayerPtr == NULL || error != NULL )
{
DALI_LOG_ERROR( "Can't load symbol DestroyVideoPlayerPlugin(), error: %s\n", error );
return;
}
-
}
void VideoPlayer::SetUrl( const std::string& url )
return Dali::VideoPlayerPlugin::CodecType::DEFAULT;
}
+void VideoPlayer::SetDisplayMode( Dali::VideoPlayerPlugin::DisplayMode::Type mode )
+{
+ if( mPlugin != NULL )
+ {
+ mPlugin->SetDisplayMode( mode );
+ }
+}
+
+Dali::VideoPlayerPlugin::DisplayMode::Type VideoPlayer::GetDisplayMode() const
+{
+ if( mPlugin != NULL )
+ {
+ return mPlugin->GetDisplayMode();
+ }
+
+ return Dali::VideoPlayerPlugin::DisplayMode::DST_ROI;
+}
+
+Any VideoPlayer::GetMediaPlayer()
+{
+ if( mPlugin != NULL )
+ {
+ return mPlugin->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;