提交 02100e65 authored 作者: blu's avatar blu

init

上级 6b5efa40
...@@ -150,7 +150,7 @@ private: ...@@ -150,7 +150,7 @@ private:
void *pDealerCtx = NULL; void *pDealerCtx = NULL;
void *pDealer = NULL; void *pDealer = NULL;
AVFormatContext *pAVFormatInput = NULL; AVFormatContext *pAVFormatInput = NULL;
string urlIn, urlPub, urlDealer, mgrSn, devSn, selfId; string urlIn, urlPub, urlDealer, mgrSn, devSn, selfId, ipcPort;
int *streamList = NULL, numStreams = 0, iid; int *streamList = NULL, numStreams = 0, iid;
time_t tsLastBoot, tsUpdateTime; time_t tsLastBoot, tsUpdateTime;
json config; json config;
...@@ -223,7 +223,16 @@ private: ...@@ -223,7 +223,16 @@ private:
mgrSn = evmgr["sn"]; mgrSn = evmgr["sn"];
user = ipc["user"]; user = ipc["user"];
passwd = ipc["password"]; passwd = ipc["password"];
urlIn = "rtsp://" + user + ":" + passwd + "@" + ipc["addr"].get<string>() + "/h264/ch1/sub/av_stream";
// default stream port
if(ipc.count("port") == 0) {
ipcPort = "554";
}else{
ipcPort = ipc["port"];
}
urlIn = "rtsp://" + user + ":" + passwd + "@" + ipc["addr"].get<string>() + ":" + ipcPort + "/h264/ch1/sub/av_stream";
addr = evpuller["addr"].get<string>(); addr = evpuller["addr"].get<string>();
if(addr == "*" || addr == "0.0.0.0") { if(addr == "*" || addr == "0.0.0.0") {
spdlog::error("evpuller {} invalid addr {} for pub", selfId, evpuller.dump()); spdlog::error("evpuller {} invalid addr {} for pub", selfId, evpuller.dump());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论