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

rtmp服务器推流 #6

Open
Gao-k opened this issue Oct 20, 2023 · 3 comments
Open

rtmp服务器推流 #6

Gao-k opened this issue Oct 20, 2023 · 3 comments

Comments

@Gao-k
Copy link

Gao-k commented Oct 20, 2023

您好!请问可以实现本地打开麦克风并推流到给定的rtmp服务器上播出吗?

@ccallcn
Copy link
Owner

ccallcn commented Oct 20, 2023

不了解你用什么推流工具,web自带推流是到本服务器。要推其他rtmp服务器,要参考拉流转推(拉这条上来的流转推到其它服务器,要调接口包装一下),需要调web接口转发一下。

@Gao-k
Copy link
Author

Gao-k commented Oct 20, 2023

我之前是想通过vue前端直接推流到rtmp服务器设备上,尝试了好久都行不通。后来又通过传到websocket,再转到rtmp,您觉得这种方法可行吗?虽然设备上还是没有播出我的语音。

@ccallcn
Copy link
Owner

ccallcn commented Oct 20, 2023

web不能直推rtmp流,不能自定义协议吧,除websocket,wertc(udp)其它都在web上实现不了。websocket转推也是可以的,看过还有直接post推视频流也都是可以的,不过不适合大规模并发,同步和编码打包都较麻烦,延时性能不太好,理论上用webrtc更合适,本程序web推流就是采的webrtc。

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

No branches or pull requests

2 participants