Add api for get the internal media player handle of the video player
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 13 Jan 2020 08:18:17 +0000 (17:18 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Wed, 22 Jan 2020 01:18:56 +0000 (10:18 +0900)
Change-Id: Ib5fc46a650e189ca35f510d61f0f107835448374

dali/devel-api/adaptor-framework/video-player-plugin.h
dali/devel-api/adaptor-framework/video-player.cpp
dali/devel-api/adaptor-framework/video-player.h
dali/internal/video/common/video-player-impl.cpp
dali/internal/video/common/video-player-impl.h

index 39a2926..73d175e 100755 (executable)
@@ -267,6 +267,12 @@ public:
    */
   virtual VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const = 0;
 
+  /**
+   * @brief Returns the current internal media player.
+   * @return The current internal media player of video player
+   */
+  virtual Any GetMediaPlayer() = 0;
+
 };
 
 } // namespace Dali;
index fb992f3..870571b 100755 (executable)
@@ -196,5 +196,10 @@ Dali::VideoPlayerPlugin::DisplayMode::Type VideoPlayer::GetDisplayMode() const
   return GetImplementation( *this ).GetDisplayMode();
 }
 
+Any VideoPlayer::GetMediaPlayer()
+{
+  return GetImplementation( *this ).GetMediaPlayer();
+}
+
 } // namespace Dali;
 
index 1df28fc..6db7304 100755 (executable)
@@ -272,6 +272,12 @@ public:
    */
   Dali::VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const;
 
+  /**
+   * @brief Gets the media player of video player
+   * @return player The media player
+   */
+  Any GetMediaPlayer();
+
 private: // Not intended for application developers
 
   /**
index 05f371e..a431ecb 100755 (executable)
@@ -338,6 +338,15 @@ Dali::VideoPlayerPlugin::DisplayMode::Type VideoPlayer::GetDisplayMode() const
   return Dali::VideoPlayerPlugin::DisplayMode::DST_ROI;
 }
 
+Any VideoPlayer::GetMediaPlayer()
+{
+  if( mPlugin != NULL )
+  {
+    return mPlugin->GetMediaPlayer();
+  }
+  return NULL;
+}
+
 } // namespace Adaptor;
 } // namespace Internal;
 } // namespace Dali;
index bd13dcd..71a493e 100755 (executable)
@@ -184,6 +184,11 @@ public:
    */
   Dali::VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const;
 
+  /**
+   * @brief Dali::VideoPlayer::GetMediaPlayer()
+   */
+  Any GetMediaPlayer();
+
 private:
 
   /**