Name: libmm-player
Summary: Multimedia Framework Player Library
-Version: 0.6.96
+Version: 0.6.97
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
/**
* These functions are to display the 360 video content
*/
+int mm_player_360_is_content_spherical(MMHandleType player, bool *is_spherical);
int mm_player_360_set_enable(MMHandleType player, bool enable);
int mm_player_360_is_enabled(MMHandleType player, bool *enabled);
| GLOBAL FUNCTION PROTOTYPES |
========================================================================================*/
+int _mmplayer_360_is_content_spherical(MMHandleType player, bool *is_spherical);
int _mmplayer_360_set_enable(MMHandleType player, bool enable);
int _mmplayer_360_is_enabled(MMHandleType player, bool *enabled);
int _mmplayer_360_set_direction_of_view(MMHandleType player, float yaw, float pitch);
return result;
}
+int mm_player_360_is_content_spherical(MMHandleType player, bool *is_spherical)
+{
+ int result = MM_ERROR_NONE;
+
+ MMPLAYER_RETURN_VAL_IF_FAIL(player, MM_ERROR_PLAYER_NOT_INITIALIZED);
+ MMPLAYER_RETURN_VAL_IF_FAIL(is_spherical, MM_ERROR_INVALID_ARGUMENT);
+
+ MMPLAYER_CMD_LOCK(player);
+
+ result = _mmplayer_360_is_content_spherical(player, is_spherical);
+
+ MMPLAYER_CMD_UNLOCK(player);
+
+ return result;
+}
+
int mm_player_360_set_enable(MMHandleType player, bool enable)
{
int result = MM_ERROR_NONE;
return true;
}
+int _mmplayer_360_is_content_spherical(MMHandleType hplayer, bool *is_spherical)
+{
+ mm_player_t* player = (mm_player_t*) hplayer;
+
+ MMPLAYER_FENTER();
+ MMPLAYER_RETURN_VAL_IF_FAIL(player && player->pipeline, MM_ERROR_PLAYER_NOT_INITIALIZED);
+ MMPLAYER_RETURN_VAL_IF_FAIL(is_spherical, MM_ERROR_INVALID_ARGUMENT);
+
+ LOGD("state %s, spherical info %d",
+ MMPLAYER_STATE_GET_NAME(MMPLAYER_CURRENT_STATE(player)), player->is_content_spherical);
+
+ if (player->state < MM_PLAYER_STATE_READY) {
+ *is_spherical = false;
+ return MM_ERROR_PLAYER_INVALID_STATE;
+ }
+
+ *is_spherical = (bool)player->is_content_spherical;
+
+ MMPLAYER_FLEAVE();
+ return MM_ERROR_NONE;
+}
+
int _mmplayer_360_set_enable(MMHandleType hplayer, bool enable)
{
mm_player_t* player = (mm_player_t*) hplayer;