From: Eunhae Choi Date: Tue, 3 May 2016 04:32:34 +0000 (+0900) Subject: add new internal api at wearable profile too. X-Git-Tag: accepted/tizen/common/20160509.135032^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8520cb95d411c0e37a401b7a9f5a7fb51f6f95dd;p=platform%2Fcore%2Fapi%2Fplayer.git add new internal api at wearable profile too. internal api is to set ecore wayland display. Change-Id: Ifb0711a38ee803154a2cb2228fb7577758768119 Signed-off-by: Eunhae Choi --- diff --git a/include/wearable/player_internal.h b/include/wearable/player_internal.h index d85badc..16c9cf4 100644 --- a/include/wearable/player_internal.h +++ b/include/wearable/player_internal.h @@ -17,6 +17,9 @@ #ifndef __TIZEN_MEDIA_PLAYER_INTERNAL_H__ #define __TIZEN_MEDIA_PLAYER_INTERNAL_H__ #include +#ifdef HAVE_WAYLAND +#include +#endif #ifdef __cplusplus extern "C" { #endif @@ -155,6 +158,32 @@ int player_set_media_stream_buffer_status_cb_ex(player_h player, player_stream_t */ int player_unset_media_stream_buffer_status_cb_ex(player_h player, player_stream_type_e type); +#ifdef HAVE_WAYLAND +/** + * @brief Sets the ecore wayland video display. + * @since_tizen 3.0 + * @remarks This API support PLAYER_DISPLAY_TYPE_OVERLAY type only. + * @param[in] player The handle to the media player + * @param[in] type The display type + * @param[in] ecore_wl_window The ecore wayland window handle + * @param[in] x the x coordinate of window + * @param[in] y the y coordinate of window + * @param[in] width the width of window + * @param[in] height the height of window + * @return @c 0 on success, + * otherwise a negative error value + * @retval #PLAYER_ERROR_NONE Successful + * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation + * @retval #PLAYER_ERROR_INVALID_STATE Invalid player state + * @pre The player state must be one of these: #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED. + * @see player_set_display_rotation + */ +int player_set_ecore_wl_display(player_h player, player_display_type_e type, Ecore_Wl_Window *ecore_wl_window, int x, int y, int width, int height); + +#endif + + /** * @} */ diff --git a/src/player_internal.c b/src/player_internal.c index 54773f3..76447c0 100644 --- a/src/player_internal.c +++ b/src/player_internal.c @@ -24,7 +24,9 @@ #include #include #include +#ifdef HAVE_WAYLAND #include +#endif #include #include #include "player_private.h"