* This function is called, the synchronization is finished between UI(transparent hole) and video player.
*/
virtual void FinishSynchronization() = 0;
+
+ /**
+ * @brief Raise the video player above the target video plaer.
+ *
+ * @param[in] target The target video player
+ */
+ virtual void RaiseAbove(Any target) = 0;
+
+ /**
+ * @brief Lower the video player to below the target video player.
+ *
+ * @param[in] target The target video player
+ */
+ virtual void LowerBelow(Any target) = 0;
+
+ /**
+ * @brief Raise video player above all other sibling video players.
+ *
+ */
+ virtual void RaiseToTop() = 0;
+
+ /**
+ * @brief Lower video player to the bottom of all other sibling video players.
+ *
+ */
+ virtual void LowerToBottom() = 0;
+
+ /**
+ * @brief Gets Video Player's native surface.
+ *
+ * @return The return of native surface pointer of video player
+ */
+ virtual Any GetVideoPlayerSurface() = 0;
};
} // namespace Dali
GetImplementation(*this).FinishSynchronization();
}
+void VideoPlayer::RaiseAbove(Dali::VideoPlayer target)
+{
+ GetImplementation(*this).RaiseAbove(target);
+}
+
+void VideoPlayer::LowerBelow(Dali::VideoPlayer target)
+{
+ GetImplementation(*this).LowerBelow(target);
+}
+
+void VideoPlayer::RaiseToTop()
+{
+ GetImplementation(*this).RaiseToTop();
+}
+
+void VideoPlayer::LowerToBottom()
+{
+ GetImplementation(*this).LowerToBottom();
+}
+
} // namespace Dali
*/
void FinishSynchronization();
+ /**
+ * @brief Raise the video player above the target video plaer.
+ *
+ * @param[in] target The target video player
+ */
+ void RaiseAbove(Dali::VideoPlayer target);
+
+ /**
+ * @brief Lower the video player to below the target video player.
+ *
+ * @param[in] target The target video player
+ */
+ void LowerBelow(Dali::VideoPlayer target);
+
+ /**
+ * @brief Raise video player above all other sibling video players.
+ */
+ void RaiseToTop();
+
+ /**
+ * @brief Lower video player to the bottom of all other sibling video players.
+ */
+ void LowerToBottom();
+
private: // Not intended for application developers
/**
* @brief Internal constructor
}
}
+void VideoPlayer::RaiseAbove(Dali::VideoPlayer target)
+{
+ VideoPlayerPlugin* targetPlugin = GetImplementation(target).GetVideoPlayerPlugin();
+ if(mPlugin != nullptr && targetPlugin != nullptr)
+ {
+ mPlugin->RaiseAbove(targetPlugin->GetVideoPlayerSurface());
+ }
+}
+
+void VideoPlayer::LowerBelow(Dali::VideoPlayer target)
+{
+ VideoPlayerPlugin* targetPlugin = GetImplementation(target).GetVideoPlayerPlugin();
+ if(mPlugin != nullptr && targetPlugin != nullptr)
+ {
+ mPlugin->LowerBelow(targetPlugin->GetVideoPlayerSurface());
+ }
+}
+
+void VideoPlayer::RaiseToTop()
+{
+ if(mPlugin != nullptr)
+ {
+ mPlugin->RaiseToTop();
+ }
+}
+
+void VideoPlayer::LowerToBottom()
+{
+ if(mPlugin != nullptr)
+ {
+ mPlugin->LowerToBottom();
+ }
+}
+VideoPlayerPlugin* VideoPlayer::GetVideoPlayerPlugin()
+{
+ return mPlugin;
+}
+
} // namespace Adaptor
} // namespace Internal
} // namespace Dali
*/
void FinishSynchronization();
+ /**
+ * @copydoc Dali::VideoPlayer::RaiseAbove()
+ */
+ void RaiseAbove(Dali::VideoPlayer target);
+
+ /**
+ * @copydoc Dali::VideoPlayer::LowerBelow()
+ */
+ void LowerBelow(Dali::VideoPlayer target);
+
+ /**
+ * @copydoc Dali::VideoPlayer::RaiseToTop()
+ */
+ void RaiseToTop();
+
+ /**
+ * @copydoc Dali::VideoPlayer::LowerToBottom()
+ */
+ void LowerToBottom();
+
+ /**
+ * @brief Gets Video Player plugin
+ * @SINCE_2_0.14
+ * @return VideoPlayerPlugin pointer
+ */
+ VideoPlayerPlugin* GetVideoPlayerPlugin();
+
private:
/**
* @brief Constructor.