是否有任何替代方法来实现 WebRTC SFU,只有 1 个上传流? [英] Is there any alternative approach to implement WebRTC SFU, to have only 1 upload stream?

查看:78
本文介绍了是否有任何替代方法来实现 WebRTC SFU,只有 1 个上传流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个服务器,它能够将 WebRTC 媒体数据从 A 中继到 B.对于视频会议,如果我们采用 P2P 方法,则会创建一个网状网络.每当 P2P 不工作时,我们可以拥有这个中继服务器.

I have a server which is able to relay the WebRTC media data from A to B. For the video conferencing, if we go with P2P approach then a mesh network is created. Whenever P2P doesn't work, we can have this relay server.

主要问题是在mesh网络中,上传链接的数量是N-1";对于 N 个参与者.因此连接数上升到 N * (N-1).通常网状网络允许5-6个稳定连接.

The main problem is that in the mesh network, the number of upload link is "N - 1" for N participants. Hence the number of connection goes upto N * (N-1). Usually mesh network allows 5-6 stable connections.

许多在线资源都建议实施 SFU.如果 SFU 解密媒体数据,然后为每个对等点重新加密,那么这实际上需要服务器端的 WebRTC 组件.是否有任何基于 C/C++ 的轻量级库在这方面有所帮助?

Many online sources suggest to implement SFU. If SFU decrypts the media data and then re-encrypts for every peer then that virtually requires a WebRTC component on the server side. Are there any lightweight C/C++ based library which helps in this regard?

有没有更好的替代策略?

Any better alternative strategy for the same?

顺便说一句,我试图用他们自己的答案向所有同行分享相同的提议,但正如预期的那样没有奏效.对等方在收到几个块后断开连接.

BTW, I tried to share the same offer to all the peers with their own answer, but as expected it didn't work. The peer gets disconnected after receiving few chunks.

我参考了以下相关帖子:

I have referred below related posts:

推荐答案

有不少实现 SFU 的免费开源项目:

There are quite a few free and open source projects that implement an SFU:

  • Jitsi 可能是最著名的,但它是用 Java 编写的,因此可能是不适用于某些部署;
  • Janus 是用 C 编写的;它小巧、高效且支持良好,但可能不是最容易理解的;
  • Ion-SFUGalène 是用 Go 编写的,可能更容易适应您的需求.
  • Jitsi is probably the best known, but it is written in Java, and might therefore be unsuitable in some deployments;
  • Janus is written in C; it is small, efficient, and well supported, but might not be the easiest to understand;
  • Ion-SFU and Galène are written in Go, and might be easier to adapt to your needs.

这篇关于是否有任何替代方法来实现 WebRTC SFU,只有 1 个上传流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆