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协议转到ws协议 #29

Open
xx81-123xb opened this issue Jul 7, 2023 · 3 comments
Open

如何将流地址从http协议转到ws协议 #29

xx81-123xb opened this issue Jul 7, 2023 · 3 comments

Comments

@xx81-123xb
Copy link

可以给点提示么,看了源码,能看懂,但是不知道怎么转,对视频这块不是很熟悉.有大佬能给点建议么

@xx81-123xb
Copy link
Author

作者群里有个大佬给了解决方法:
9d861852b0a22e769a64f42c021e7bf
实测有效.就是在播放的时候还有一些小问题.跳帧.然后就是我最初在开启websocket链接的时候发送了作者的Handler的Http数据:
image
后面发现播放不了.发现不能发.把发送的这个去掉就好

@xx81-123xb
Copy link
Author

然后就是贴一个ws视频流在线测试地址:http://bilibili.github.io/flv.js/demo/ b站的好像.网上找了好久ws流地址播放demo就是没有.最后找到了这个.然后这个还支持内网地址播放非常nice.没有audio的把上面的hasAudio去掉勾选就可以了:类似我这样:
image

@chaun85
Copy link

chaun85 commented Dec 31, 2023

完整的代码能贴一下么?

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