简体   繁体   English

试图了解 WebRTC 信令通道

[英]Trying to understand WebRTC Signaling Channels

Help me understand how the signaling works in WebRTC.帮助我了解信号在 WebRTC 中的工作原理。 Specifically, if I have a given channel, say using Amazon Kinesis or a similar product, how would a peer know which peer to call?具体来说,如果我有一个给定的渠道,比如使用 Amazon Kinesis 或类似产品,那么对等点如何知道要调用哪个对等点? Do I need a dedicated channel per set of all peers that need to connect?对于需要连接的所有对等点,我是否需要一个专用通道?

Say we have 5 peers and we like to have the following connection topo: ie假设我们有 5 个对等点,我们希望有以下连接拓扑:即

Peer1<->Peer2
Peer2<->Peer3
Peer4<->Peer5

When peer1 creates offer and sends them to signal channel1, how would Peer2 know this offer is only intended for them?当 peer1 创建 offer 并将它们发送到信号 channel1 时,Peer2 怎么知道这个 offer 只针对他们? How would Peer4 know not to consume that offer? Peer4 怎么会知道不消费该优惠?

Do we need one channel per set of peers that need to connect?我们需要每组需要连接的对等点一个通道吗? In this case, probably two channels?在这种情况下,可能有两个渠道? one that handles 2<->1 2<->3 and one for 4<->5?一个处理 2<->1 2<->3 和一个处理 4<->5?

KVS is designed right now to connect peers 1:N, so you have one master and it connects too many viewers. KVS 现在被设计为连接对等点 1:N,所以你只有一个主节点,它连接了太多的观众。 By design Peer2 and Peer3 can not see each other.按照设计,Peer2 和 Peer3 不能互相看到。

         | -> Peer2
         | 
Peer1 -->|
         |
         | -> Peer3

I am not sure, but it sounds like you are looking for a mesh topology, where every peer can see each other?我不确定,但听起来您正在寻找网状拓扑,每个对等方都可以看到对方? This is what you usually want for conference rooms, or an n:n setup.这是您通常想要的会议室或 n:n 设置。

Peer1 -> Peer2
Peer1 -> Peer3
Peer2 -> Peer3

This is not available today, but if this is something we are exploring adding.这今天不可用,但如果这是我们正在探索添加的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM