WebRTC - scalable live stream broadcasting / multicasting

前端 未结 12 738
别跟我提以往
别跟我提以往 2020-11-30 16:47

PROBLEM:

WebRTC gives us peer-to-peer video/audio connections. It is perfect for p2p calls, hangouts. But what about broadcasting (one-to-many, for

12条回答
  •  悲哀的现实
    2020-11-30 17:26

    "Scalable" broadcasting is not possible on the Internet, because the IP UDP multicasting is not allowed there. But in theory it's possible on a LAN.
    The problem with Websockets is that you don't have access to RAW UDP by design and it won't be allowed.
    The problem with WebRTC is that it's data channels use a form of SRTP, where each session has own encryption key. So unless somebody "invents" or an API allows a way to share one session key between all clients, the multicast is useless.

提交回复
热议问题