We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if ((strcasecmp("http", prefix.data()) == 0 || strcasecmp("https", prefix.data()) == 0)) { if (end_with(url, ".m3u8") || end_with(url_in, ".m3u8")) { return PlayerBase::Ptr(new HlsPlayerImp(poller), release_func); } if (end_with(url, ".ts") || end_with(url_in, ".ts")) { return PlayerBase::Ptr(new TsPlayerImp(poller), release_func); } if (end_with(url, ".flv") || end_with(url_in, ".flv")) { return PlayerBase::Ptr(new FlvPlayerImp(poller), release_func); } }
这块代码已经卡死了,不支持不带后缀的常规二进制视频流。
The text was updated successfully, but these errors were encountered:
没法 zlm目前只有根据url去判断是什么负载或协议的能力,目前没法根据http content-type去自动判断。 我觉得也没太必要去支持 因为zlm的定位本来也不是FFmpeg,zlm能拉这么多种流其实已经是异类了
Sorry, something went wrong.
No branches or pull requests
描述该功能的用处,可以提供相关资料描述该功能
该功能是否用于改进项目缺陷,如果是,请描述现有缺陷
if ((strcasecmp("http", prefix.data()) == 0 || strcasecmp("https", prefix.data()) == 0)) {
if (end_with(url, ".m3u8") || end_with(url_in, ".m3u8")) {
return PlayerBase::Ptr(new HlsPlayerImp(poller), release_func);
}
if (end_with(url, ".ts") || end_with(url_in, ".ts")) {
return PlayerBase::Ptr(new TsPlayerImp(poller), release_func);
}
if (end_with(url, ".flv") || end_with(url_in, ".flv")) {
return PlayerBase::Ptr(new FlvPlayerImp(poller), release_func);
}
}
描述你期望实现该功能的方式和最终效果
这块代码已经卡死了,不支持不带后缀的常规二进制视频流。
The text was updated successfully, but these errors were encountered: