mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复编译问题
This commit is contained in:
parent
e44c2d5508
commit
5e7260c723
@ -70,7 +70,7 @@ int main(int argc, char *argv[]) {
|
||||
player->setOnShutdown([&](const SockException &ex) {
|
||||
--alivePlayerCnt;
|
||||
});
|
||||
(*player)[RtspPlayer::kRtpType] = atoi(argv[4]);
|
||||
(*player)[kRtpType] = atoi(argv[4]);
|
||||
player->play(argv[3]);
|
||||
playerList.push_back(player);
|
||||
return playerCnt--;
|
||||
|
@ -90,7 +90,7 @@ int main(int argc, char *argv[]) {
|
||||
player->setOnShutdown([](const SockException &ex) {
|
||||
ErrorL << "OnShutdown:" << ex.what();
|
||||
});
|
||||
(*player)[RtspPlayer::kRtpType] = atoi(argv[2]);
|
||||
(*player)[kRtpType] = atoi(argv[2]);
|
||||
player->play(argv[1]);
|
||||
|
||||
SDLDisplayerHelper::Instance().runLoop();
|
||||
|
@ -259,7 +259,7 @@ int main(int argc,char *argv[]) {
|
||||
|
||||
PlayerProxy::Ptr player(new PlayerProxy(DEFAULT_VHOST, "live", to_string(i).data()));
|
||||
//指定RTP over TCP(播放rtsp时有效)
|
||||
(*player)[RtspPlayer::kRtpType] = Rtsp::RTP_TCP;
|
||||
(*player)[kRtpType] = Rtsp::RTP_TCP;
|
||||
//开始播放,如果播放失败或者播放中止,将会自动重试若干次,重试次数在配置文件中配置,默认一直重试
|
||||
player->play(url);
|
||||
//需要保存PlayerProxy,否则作用域结束就会销毁该对象
|
||||
|
Loading…
Reference in New Issue
Block a user