diff --git a/player/test_player.cpp b/player/test_player.cpp index 995070c1..704e7237 100644 --- a/player/test_player.cpp +++ b/player/test_player.cpp @@ -113,6 +113,8 @@ int main(int argc, char *argv[]) { }); (*player)[kRtpType] = atoi(argv[2]); + //不等待track ready再回调播放成功事件,这样可以加快秒开速度 + (*player)[Client::kWaitTrackReady] = false; player->play(argv[1]); SDLDisplayerHelper::Instance().runLoop(); return 0;