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

求助 #1

Open
AimLuo opened this issue Sep 6, 2019 · 6 comments
Open

求助 #1

AimLuo opened this issue Sep 6, 2019 · 6 comments

Comments

@AimLuo
Copy link

AimLuo commented Sep 6, 2019

能否说下原理,我纯前端有些看不懂。

@NiuStar
Copy link
Owner

NiuStar commented Sep 9, 2019

第一步:根据协议接收推流的RTSP视频流
第二步:根据协议进行为拉流方推流。

前端是在第二步根据RTSP流协议收流,拿到视频流以后进行H264解码

@AimLuo
Copy link
Author

AimLuo commented Sep 9, 2019

现在有rtsp的视频流,我在vlc播放器中可以直接播放。那么在浏览器应该怎么做。看了Streamedian,但是服务端要收费。

@NiuStar
Copy link
Owner

NiuStar commented Sep 10, 2019

https://blog.csdn.net/u014041540/article/details/51778358
html中直接播放rtsp使用vlc插件
http://blog.chinaunix.net/uid-21385796-id-5791655.html
不依赖vlc插件,但要做rtmp转接

@AimLuo
Copy link
Author

AimLuo commented Sep 11, 2019

现在用
https://github.com/VideoExpertsGroup/Chrome.RTSP.Player

可以,不过限制还是比较大。其他方案不是一会就能做好的。

@NiuStar
Copy link
Owner

NiuStar commented Sep 12, 2019

是的,其实网页中的话,一般会采用RTMP的解决方案或者HLS,还有一种的话就是自定义的私有协议
,自定义的私有协议会走websocket,以前我做过一个,但没有优化,带宽各方面控制的不是太好,就没上传上来

@AimLuo
Copy link
Author

AimLuo commented Sep 12, 2019

现在采用rtmp的方案,用video.js播放。另外私有协议的websocket就没找到开源的,服务端都是收费的。

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