From bcb1103a1bca5efa56b2d05ba04f54b9d8e12bf3 Mon Sep 17 00:00:00 2001 From: Hyunil Date: Mon, 25 Sep 2017 13:56:31 +0900 Subject: [PATCH] [0.3.76] ecore wl display api for setting display is changed Change-Id: Id9de704874e825635b8fbc70969bf5f3829f806f Signed-off-by: Hyunil --- include/player_internal.h | 8 ++++++-- packaging/capi-media-player.spec | 2 +- src/player_internal.c | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/player_internal.h b/include/player_internal.h index 51a6d93..fbfd7b9 100644 --- a/include/player_internal.h +++ b/include/player_internal.h @@ -236,12 +236,16 @@ int player_unset_media_stream_buffer_status_cb_ex(player_h player, player_stream int player_set_media_stream_dynamic_resolution(player_h player, bool drc); /** - * @brief Sets the ecore wayland window video display. + * @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 @@ -251,7 +255,7 @@ int player_set_media_stream_dynamic_resolution(player_h player, bool drc); * @pre The player state must be one of #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING, or #PLAYER_STATE_PAUSED. * @see player_set_display_rotation */ -int player_set_ecore_wl_win_display(player_h player, player_display_type_e type, void *ecore_wl_window); +int player_set_ecore_wl_display(player_h player, player_display_type_e type, void *ecore_wl_window, int x, int y, int width, int height); /** * @brief Called when no free space in buffer. diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index 17ecb05..a94e86f 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,6 +1,6 @@ Name: capi-media-player Summary: A Media Player API -Version: 0.3.75 +Version: 0.3.76 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/player_internal.c b/src/player_internal.c index 18408e3..45591b4 100644 --- a/src/player_internal.c +++ b/src/player_internal.c @@ -180,7 +180,7 @@ int player_set_media_stream_dynamic_resolution(player_h player, bool drc) return ret; } -int player_set_ecore_wl_win_display(player_h player, player_display_type_e type, void *ecore_wl_window) +int player_set_ecore_wl_display(player_h player, player_display_type_e type, void *ecore_wl_window, int x, int y, int width, int height) { PLAYER_INSTANCE_CHECK(player); int ret = PLAYER_ERROR_NONE; -- 2.7.4