mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-13 09:30:52 +08:00
重写http客户端异常处理机制
This commit is contained in:
@@ -112,6 +112,10 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
});
|
||||
|
||||
player->setOnShutdown([](const SockException &ex){
|
||||
WarnL << "play shutdown: " << ex.what();
|
||||
});
|
||||
|
||||
(*player)[kRtpType] = atoi(argv[2]);
|
||||
//不等待track ready再回调播放成功事件,这样可以加快秒开速度
|
||||
(*player)[Client::kWaitTrackReady] = false;
|
||||
|
||||
Reference in New Issue
Block a user