整理MediaSource协议类型

This commit is contained in:
夏楚
2023-12-02 16:31:40 +08:00
committed by GitHub
parent 10c2197e76
commit 76aebd74c6
6 changed files with 20 additions and 10 deletions

View File

@@ -491,7 +491,19 @@ MediaSource::Ptr MediaSource::find(const string &vhost, const string &app, const
if (src) {
return src;
}
return MediaSource::find(HLS_SCHEMA, vhost, app, stream_id, from_mp4);
src = MediaSource::find(TS_SCHEMA, vhost, app, stream_id, from_mp4);
if (src) {
return src;
}
src = MediaSource::find(FMP4_SCHEMA, vhost, app, stream_id, from_mp4);
if (src) {
return src;
}
src = MediaSource::find(HLS_SCHEMA, vhost, app, stream_id, from_mp4);
if (src) {
return src;
}
return MediaSource::find(HLS_FMP4_SCHEMA, vhost, app, stream_id, from_mp4);
}
void MediaSource::emitEvent(bool regist){