mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-26 16:00:55 +08:00
适配ZLToolKit(更新定时器)
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include "Network/sockutil.h"
|
||||
#include "Poller/EventPoller.h"
|
||||
#include "Player/PlayerProxy.h"
|
||||
#include "Thread/WorkThreadPool.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace toolkit;
|
||||
|
||||
@@ -266,7 +266,7 @@ int main(int argc,char *argv[]) {
|
||||
//指定RTP over TCP(播放rtsp时有效)
|
||||
(*player)[RtspPlayer::kRtpType] = PlayerBase::RTP_TCP;
|
||||
//开始播放,如果播放失败或者播放中止,将会自动重试若干次,重试次数在配置文件中配置,默认一直重试
|
||||
player->play(url);
|
||||
//player->play(url);
|
||||
//需要保存PlayerProxy,否则作用域结束就会销毁该对象
|
||||
proxyMap.emplace(to_string(i), player);
|
||||
++i;
|
||||
|
||||
Reference in New Issue
Block a user