From e0d40886ab884c6ac78470f7896a297269518145 Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Mon, 13 Jan 2020 17:17:00 +0900 Subject: [PATCH] Add api for get the internal media player handle of the video player Change-Id: Ia98f3249bab202592cdc168384f8a11228388c84 --- dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp | 5 +++++ dali-extension/video-player/ecore-wl/tizen-video-player.h | 5 +++++ .../video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp | 4 ++++ dali-extension/video-player/ecore-wl2/tizen-video-player.h | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp b/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp index 8a03255..abb8653 100755 --- a/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp +++ b/dali-extension/video-player/ecore-wl/tizen-video-player-ecore-wl.cpp @@ -904,6 +904,11 @@ Dali::VideoPlayerPlugin::DisplayMode::Type TizenVideoPlayer::GetDisplayMode() co return static_cast< Dali::VideoPlayerPlugin::DisplayMode::Type >( mode ); } +Any TizenVideoPlayer::GetMediaPlayer() +{ + return Any( mPlayer ); +} + } // namespace Plugin } // namespace Dali; diff --git a/dali-extension/video-player/ecore-wl/tizen-video-player.h b/dali-extension/video-player/ecore-wl/tizen-video-player.h index 89ccdd3..e50c464 100755 --- a/dali-extension/video-player/ecore-wl/tizen-video-player.h +++ b/dali-extension/video-player/ecore-wl/tizen-video-player.h @@ -198,6 +198,11 @@ public: */ Dali::VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const; + /** + * @copydoc Dali::VideoPlayerPlugin::GetMediaPlayer() + */ + Any GetMediaPlayer(); + private: /** diff --git a/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp b/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp index a6305e3..53e4995 100755 --- a/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp +++ b/dali-extension/video-player/ecore-wl2/tizen-video-player-ecore-wl2.cpp @@ -904,6 +904,10 @@ Dali::VideoPlayerPlugin::DisplayMode::Type TizenVideoPlayer::GetDisplayMode() co return static_cast< Dali::VideoPlayerPlugin::DisplayMode::Type >( mode ); } +Any TizenVideoPlayer::GetMediaPlayer() +{ + return Any( mPlayer ); +} } // namespace Plugin } // namespace Dali; diff --git a/dali-extension/video-player/ecore-wl2/tizen-video-player.h b/dali-extension/video-player/ecore-wl2/tizen-video-player.h index 5cb6da0..04cc00f 100755 --- a/dali-extension/video-player/ecore-wl2/tizen-video-player.h +++ b/dali-extension/video-player/ecore-wl2/tizen-video-player.h @@ -198,6 +198,11 @@ public: */ Dali::VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const; + /** + * @copydoc Dali::VideoPlayerPlugin::GetMediaPlayer() + */ + Any GetMediaPlayer(); + private: /** -- 2.7.4