From caceb90b40d822c08a911352532d65be32df2e8c Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Fri, 23 Apr 2021 16:37:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E3=80=81=E5=8A=A0=E5=BF=AB=E6=B5=81=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/pusher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/tests/pusher.c b/api/tests/pusher.c index 3c5d580b..76ca4297 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 {