return ret;
}
-int player_set_streaming_buffering_time(player_h player, int buffer_ms, int rebuffer_ms)
+int player_set_streaming_buffering_time(player_h player, int prebuffer_ms, int rebuffer_ms)
{
int ret = PLAYER_ERROR_NONE;
PLAYER_INSTANCE_CHECK(player);
- PLAYER_CHECK_CONDITION(buffer_ms >= 0 && rebuffer_ms >= 0, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
+ PLAYER_CHECK_CONDITION(prebuffer_ms >= 0 && rebuffer_ms >= 0, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
player_cli_s *pc = (player_cli_s *)player;
muse_player_api_e api = MUSE_PLAYER_API_SET_STREAMING_BUFFERING_TIME;
LOGD("ENTER");
PLAYER_SEND_MSG(api, pc, ret_buf, ret,
- MUSE_TYPE_INT, "buffer_ms", buffer_ms,
+ MUSE_TYPE_INT, "prebuffer_ms", prebuffer_ms,
MUSE_TYPE_INT, "rebuffer_ms", rebuffer_ms);
g_free(ret_buf);
return ret;
}
-int player_get_streaming_buffering_time(player_h player, int *buffer_ms, int *rebuffer_ms)
+int player_get_streaming_buffering_time(player_h player, int *prebuffer_ms, int *rebuffer_ms)
{
PLAYER_INSTANCE_CHECK(player);
- PLAYER_NULL_ARG_CHECK(buffer_ms || rebuffer_ms);
+ PLAYER_NULL_ARG_CHECK(prebuffer_ms || rebuffer_ms);
int ret = PLAYER_ERROR_NONE;
muse_player_api_e api = MUSE_PLAYER_API_GET_STREAMING_BUFFERING_TIME;
player_cli_s *pc = (player_cli_s *)player;
- int buffering_time = 0, rebuffering_time = 0;
+ int prebuffering_time = 0, rebuffering_time = 0;
char *ret_buf = NULL;
LOGD("ENTER");
if (ret == PLAYER_ERROR_NONE) {
bool ret_val = true;
ret_val = _player_get_param_value(ret_buf,
- MUSE_TYPE_INT, "buffering_time", (void *)&buffering_time,
- MUSE_TYPE_INT, "rebuffering_time", (void *)&rebuffering_time,
+ MUSE_TYPE_INT, "prebuffer_ms", (void *)&prebuffering_time,
+ MUSE_TYPE_INT, "rebuffer_ms", (void *)&rebuffering_time,
INVALID_MUSE_TYPE_VALUE);
if (ret_val) {
- if (buffer_ms) *buffer_ms = buffering_time;
+ if (prebuffer_ms) *prebuffer_ms = prebuffering_time;
if (rebuffer_ms) *rebuffer_ms = rebuffering_time;
} else {
ret = PLAYER_ERROR_INVALID_OPERATION;