#define INVALID_MUSE_TYPE_VALUE 0
#define MAX_S_PATH_LEN 32
+#define MODULE_NAME "player"
#define PLAYER_FEATURE_SOUND_STREAM "http://tizen.org/feature/multimedia.player.stream_info"
#define PLAYER_FEATURE_OPENGL "http://tizen.org/feature/opengles.version.2_0"
#define PLAYER_FEATURE_SPHERICAL_VIDEO "http://tizen.org/feature/multimedia.player.spherical_video"
int pid = getpid();
muse_player_api_e api = MUSE_PLAYER_API_CREATE;
- muse_core_api_module_e module = MUSE_PLAYER;
+ int module_index = INVALID_DEFAULT_VALUE;
player_cli_s *pc = NULL;
char *ret_buf = NULL;
int retry_count = CONNECTION_RETRY;
goto ERROR;
}
+ if (muse_client_get_module_index(MODULE_NAME, &module_index) != MM_ERROR_NONE) {
+ LOGE("muse client get module index failed");
+ goto ERROR;
+ }
+
PLAYER_SEND_MSG_ASYNC(api, sock_fd, ret,
- MUSE_TYPE_INT, "module", module,
+ MUSE_TYPE_INT, "module", module_index,
MUSE_TYPE_INT, "pid", pid);
if (ret == PLAYER_ERROR_INVALID_OPERATION)
goto ERROR;