Skip to content
New issue

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

[功能请求] 希望支持常规的application/octet-stream二进制直播源拉流 #3639

Open
Subdue0 opened this issue Jun 18, 2024 · 1 comment

Comments

@Subdue0
Copy link

Subdue0 commented Jun 18, 2024

描述该功能的用处,可以提供相关资料描述该功能

该功能是否用于改进项目缺陷,如果是,请描述现有缺陷

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);
}
}

描述你期望实现该功能的方式和最终效果

这块代码已经卡死了,不支持不带后缀的常规二进制视频流。

@xia-chu
Copy link
Member

xia-chu commented Jun 18, 2024

没法 zlm目前只有根据url去判断是什么负载或协议的能力,目前没法根据http content-type去自动判断。
我觉得也没太必要去支持 因为zlm的定位本来也不是FFmpeg,zlm能拉这么多种流其实已经是异类了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants