int legacy_player_get_streaming_buffering_time(player_h player, int *buffer_ms, int *rebuffer_ms);
/* 360 video display */
+int legacy_player_360_is_content_spherical(player_h player, bool *is_spherical);
int legacy_player_360_set_enable(player_h player, bool enable);
int legacy_player_360_is_enabled(player_h player, bool *enabled);
int legacy_player_360_set_direction_of_view(player_h player, float yaw, float pitch);
}
}
+int legacy_player_360_is_content_spherical(player_h player, bool *is_spherical)
+{
+ PLAYER_INSTANCE_CHECK(player);
+ PLAYER_NULL_ARG_CHECK(is_spherical);
+
+ player_s *handle = (player_s *)player;
+
+ if (!__player_state_validate(handle, PLAYER_STATE_READY)) {
+ LOGE("PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", PLAYER_ERROR_INVALID_STATE, handle->state);
+ return PLAYER_ERROR_INVALID_STATE;
+ }
+
+ int ret = mm_player_360_is_content_spherical(handle->mm_handle, is_spherical);
+ if (ret != MM_ERROR_NONE) {
+ return __player_convert_error_code(ret, (char *)__FUNCTION__);
+ } else {
+ return PLAYER_ERROR_NONE;
+ }
+}
+
int legacy_player_360_set_enable(player_h player, bool enable)
{
PLAYER_INSTANCE_CHECK(player);
int legacy_player_360_is_enabled(player_h player, bool *enabled)
{
PLAYER_INSTANCE_CHECK(player);
+ PLAYER_NULL_ARG_CHECK(enabled);
+
player_s *handle = (player_s *)player;
if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
is_audio_only
set_streaming_buffering_time
get_streaming_buffering_time
+360_is_content_spherical
360_set_enable
360_is_enabled
360_set_direction_of_view
return ret;
}
+int player_disp_360_is_content_spherical(muse_module_h module)
+{
+ int ret = PLAYER_ERROR_NONE;
+ muse_player_api_e api = MUSE_PLAYER_API_360_IS_CONTENT_SPHERICAL;
+ muse_player_handle_s *muse_player = NULL;
+ bool val;
+
+ muse_player = (muse_player_handle_s *)muse_server_ipc_get_handle(module);
+
+ ret = legacy_player_360_is_content_spherical(muse_player->player_handle, &val);
+
+ player_msg_return1(api, ret, module, INT, val);
+ return ret;
+}
+
int player_disp_360_set_enable(muse_module_h module)
{
int ret = PLAYER_ERROR_NONE;
Name: mmsvc-player
Summary: A Media Player module for muse server
-Version: 0.2.72
+Version: 0.2.73
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0