* @details In case the media content is spherical, display mode can be selected by this function.
* @since_tizen 5.0
* @param[in] player The handle to the media player
- * @param[in] enable The 360 video display status: @c true = display with 360 video mode,
+ * @param[in] enabled The 360 video display status: @c true = display with 360 video mode,
@c false = display with full panorama mode. The default value is @c true.
* @return @c 0 on success,
* otherwise a negative error value
* @pre The player state must be one of #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
* @see player_360_is_enabled()
*/
-int player_360_set_enabled(player_h player, bool enable);
+int player_360_set_enabled(player_h player, bool enabled);
/**
* @brief Gets the 360 video display mode.
* @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
* @retval #PLAYER_ERROR_FEATURE_NOT_SUPPORTED_ON_DEVICE Unsupported feature
* @pre The player state must be one of #PLAYER_STATE_IDLE, #PLAYER_STATE_READY, #PLAYER_STATE_PLAYING or #PLAYER_STATE_PAUSED.
- * @see player_360_set_enable()
+ * @see player_360_set_enabled()
*/
int player_360_is_enabled(player_h player, bool *enabled);
return ret;
}
-int player_360_set_enable(player_h player, bool enable)
+int player_360_set_enabled(player_h player, bool enabled)
{
PLAYER_FEATURE_CHECK(PLAYER_FEATURE_OPENGL);
PLAYER_INSTANCE_CHECK(player);
int ret = PLAYER_ERROR_NONE;
- muse_player_api_e api = MUSE_PLAYER_API_360_SET_ENABLE;
+ muse_player_api_e api = MUSE_PLAYER_API_360_SET_ENABLED;
player_cli_s *pc = (player_cli_s *) player;
char *ret_buf = NULL;
- int val = (int)enable;
+ int val = (int)enabled;
- LOGD("ENTER %d", enable);
+ LOGD("ENTER %d", enabled);
player_msg_send1(api, pc, ret_buf, ret, INT, val);
g_free(ret_buf);
event_handler_set_dov_fov();
#endif
- if (player_360_set_enable(g_player[0], enable) != PLAYER_ERROR_NONE)
+ if (player_360_set_enabled(g_player[0], enable) != PLAYER_ERROR_NONE)
g_print("failed to %s video 360 mode\n", enable ? "enable" : "disable");
}