mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
支持多变量
This commit is contained in:
parent
70bb1a652a
commit
4cf09bdaa1
@ -72,9 +72,15 @@ MediaRecorder::MediaRecorder(const string &strVhost_tmp,
|
|||||||
trim(key);
|
trim(key);
|
||||||
if (key == VHOST_KEY) {
|
if (key == VHOST_KEY) {
|
||||||
hlsPrefixVhost.replace(pos_start, pos_end - pos_start + 1, strVhost);
|
hlsPrefixVhost.replace(pos_start, pos_end - pos_start + 1, strVhost);
|
||||||
|
} else{
|
||||||
|
//不识别的环境变量
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
//没有更多环境变量了
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} while (0);
|
} while (true);
|
||||||
m_hlsMaker.reset(new HLSMaker(hlsPath + "/" + strVhost + "/" + strApp + "/" + strId + "/hls.m3u8",
|
m_hlsMaker.reset(new HLSMaker(hlsPath + "/" + strVhost + "/" + strApp + "/" + strId + "/hls.m3u8",
|
||||||
hlsPrefixVhost + "/" + strApp + "/" + strId + "/",
|
hlsPrefixVhost + "/" + strApp + "/" + strId + "/",
|
||||||
hlsBufSize, hlsDuration, hlsNum));
|
hlsBufSize, hlsDuration, hlsNum));
|
||||||
|
Loading…
Reference in New Issue
Block a user