Player: 不等待track ready,加快秒开速度

This commit is contained in:
ziyue 2021-11-10 15:30:31 +08:00
parent ac41a1e933
commit 49f674418e

View File

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