diff --git a/api/tests/pusher.c b/api/tests/pusher.c index 1ea158f1..95f33dc7 100644 --- a/api/tests/pusher.c +++ b/api/tests/pusher.c @@ -91,7 +91,7 @@ void API_CALL on_mk_play_event_func(void *user_data, int err_code, const char *e if (err_code == 0) { //success log_debug("play success!"); - ctx->media = mk_media_create("__defaultVost__", "live", "test", 0, 0, 0); + ctx->media = mk_media_create("__defaultVhost__", "live", "test", 0, 0, 0); int video_codec = mk_player_video_codecId(ctx->player); int audio_codec = mk_player_audio_codecId(ctx->player); @@ -108,6 +108,7 @@ void API_CALL on_mk_play_event_func(void *user_data, int err_code, const char *e mk_player_audio_channel(ctx->player), mk_player_audio_bit(ctx->player)); } + mk_media_init_complete(ctx->media); mk_media_set_on_regist(ctx->media, on_mk_media_source_regist_func, ctx); } else {