优化点播相关代码

This commit is contained in:
xiongziliang
2020-04-03 23:27:16 +08:00
parent ecf3847482
commit 6e5cd0345d
5 changed files with 25 additions and 50 deletions

View File

@@ -63,7 +63,7 @@ void createPusher(const EventPoller::Ptr &poller,
const string &filePath,
const string &url) {
//不限制APP名并且指定文件绝对路径
auto src = onMakeMediaSource(schema,vhost,app,stream,filePath, false);
auto src = MediaSource::createFromMP4(schema,vhost,app,stream,filePath, false);
if(!src){
//文件不存在
WarnL << "MP4文件不存在:" << filePath;