优化虚拟主机相关

This commit is contained in:
xiongziliang
2019-05-29 09:24:02 +08:00
parent a603d7f1c3
commit c1b6df7bc7
2 changed files with 10 additions and 15 deletions

View File

@@ -155,22 +155,12 @@ void Mp4Maker::createFile() {
_info.strFilePath = strFile;
GET_CONFIG(string,appName,Record::kAppName);
GET_CONFIG(bool,enableVhost,General::kEnableVhost);
if(enableVhost){
_info.strUrl = _info.strVhost + "/"
+ appName + "/"
+ _info.strAppName + "/"
+ _info.strStreamId + "/"
+ strDate + "/"
+ strTime + ".mp4";
}else{
_info.strUrl = appName + "/"
+ _info.strAppName + "/"
+ _info.strStreamId + "/"
+ strDate + "/"
+ strTime + ".mp4";
}
_info.strUrl = appName + "/"
+ _info.strAppName + "/"
+ _info.strStreamId + "/"
+ strDate + "/"
+ strTime + ".mp4";
//----record 业务逻辑----//