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

webrtc epoll问题 #7

Open
wangbing8895 opened this issue Feb 23, 2021 · 6 comments
Open

webrtc epoll问题 #7

wangbing8895 opened this issue Feb 23, 2021 · 6 comments

Comments

@wangbing8895
Copy link

嗨,您好!现在新的webrtc版本支持了 epoll,应该不用自己添加 epoll了

@str2num
Copy link
Owner

str2num commented Feb 23, 2021

ok, 有空我看看,支持单线程异步吗?还是1个线程1个ice通道?

@wangbing8895
Copy link
Author

这个还要细看,对了,请教一下,你这个不支持 ice relay吗?

@str2num
Copy link
Owner

str2num commented Feb 24, 2021

这个库的定位是在服务端使用的,一般服务端对外服务都有公网ip,可以不用relay,为了简化,relay给去掉了。

@wangbing8895
Copy link
Author

哦哦,我是看中了 webrtc的ICE支持域名解析,并且代码比 libnice好看懂;如果单纯的用在服务端并且不考虑 relay,可以自己手写一个 Stun的解析,比如 MediaSoup项目就是自己解析 StunMessage,可参考

@str2num
Copy link
Owner

str2num commented Feb 24, 2021

嗯,stun解析只是一小部分,主要是ice建立的流程以及高性能的高并发ice通道的管理。webrtc一个线程管理一个ice通道,不太适用服务端,这个库对网络IO模型做了改造,通过引入高性能异步网络库,来实现单个线程可以管理大量的ice通道,最终实现服务端高性能的媒体流的分发。

@wangbing8895
Copy link
Author

嗨,您能简要说说 您的高并发 体现在代码哪里呢?想跟您学习一下

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