+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_is_content_spherical(player, is_spherical);
+
+ MMPLAYER_CMD_UNLOCK(player);
+
+ return result;
+}
+
+int mm_player_360_set_enabled(MMHandleType player, bool enabled)
+{
+ int result = MM_ERROR_NONE;
+ MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+
+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_set_enabled(player, enabled);
+
+ MMPLAYER_CMD_UNLOCK(player);
+
+ return result;
+}
+
+int mm_player_360_is_enabled(MMHandleType player, bool *enabled)
+{
+ int result = MM_ERROR_NONE;
+
+ MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+ MMPLAYER_RETURN_VAL_IF_FAIL(enabled, MM_ERROR_INVALID_ARGUMENT);
+
+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_is_enabled(player, enabled);
+
+ MMPLAYER_CMD_UNLOCK(player);
+
+ return result;
+}
+
+int mm_player_360_set_direction_of_view(MMHandleType player, float yaw, float pitch)
+{
+ int result = MM_ERROR_NONE;
+ MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+
+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_set_direction_of_view(player, yaw, pitch);
+
+ MMPLAYER_CMD_UNLOCK(player);
+
+ return result;
+}
+
+int mm_player_360_get_direction_of_view(MMHandleType player, float *yaw, float *pitch)
+{
+ int result = MM_ERROR_NONE;
+
+ MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+ MMPLAYER_RETURN_VAL_IF_FAIL(yaw && pitch, MM_ERROR_INVALID_ARGUMENT);
+
+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_get_direction_of_view(player, yaw, pitch);
+
+ MMPLAYER_CMD_UNLOCK(player);
+
+ return result;
+}
+
+int mm_player_360_set_zoom(MMHandleType player, float level)
+{
+ int result = MM_ERROR_NONE;
+ MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+
+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_set_zoom(player, level);
+
+ MMPLAYER_CMD_UNLOCK(player);
+
+ return result;
+}
+
+int mm_player_360_get_zoom(MMHandleType player, float *level)
+{
+ int result = MM_ERROR_NONE;
+
+ MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+ MMPLAYER_RETURN_VAL_IF_FAIL(level, MM_ERROR_INVALID_ARGUMENT);
+
+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_get_zoom(player, level);
+
+ MMPLAYER_CMD_UNLOCK(player);