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

推送http_ts流的客户端 #32

Closed
hnmaonanbei opened this issue Oct 24, 2020 · 3 comments
Closed

推送http_ts流的客户端 #32

hnmaonanbei opened this issue Oct 24, 2020 · 3 comments

Comments

@hnmaonanbei
Copy link

你好:
万分期望您在app/demo下添加ts流推送至lal-server的demo

@q191201771
Copy link
Owner

你好:
目前lal仅支持从lal-server拉取http-ts流,并不支持推送http-ts流。
我之前没有了解过http-ts推流,请问你是什么场景下需要?
或者现在是否有开源或常见的客户端、服务端支持http-ts推流?
请提供更多信息给我,我很乐意实现更多的功能。

@hnmaonanbei
Copy link
Author

yo 您好:
十分感激您的回复, 题中的需求已经解决了,并成功的使用的lal-server的部分库。 有一点不太成熟的建议,比如flv解析库,建议将*os.File类型 改成 io 接口类型,这样用起来就不需要改源码了。

@q191201771
Copy link
Owner

感谢提出宝贵建议。

你说的flv解析与*os.File,指的是flv_file_reader.go吗?
目前,
flv_file_reader.go对应读取flv文件,
client_pull_session.go对应拉取http-flv流,
它们都依赖更底层的解析flv tag的函数,
因为除了这两个场景,我还没有遇到其他读取flv流的场景,
所以flv_file_reader.go写的比较固定,直接包含了打开文件的操作,使得上层使用简单些。

后续有其他使用上的问题,欢迎继续提issue。

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