服务器和客户端之间的 RTCDataChannel 通信
RTCDataChannel communication between server and client
我要创建实时 Web 应用程序并想使用 WebRTC RTCDataChannel 在客户端和服务器之间交换数据。
WebRTC 是为点对点通信而创建的。但是,是否可以在服务器和客户端之间进行数据交换?
是的!您可以使用 WebRTC 实现并从头开始构建您的服务器。感觉就像使用 HTTP 库并设置自己的端点。
- https://github.com/aiortc/aiortc (Python)
- GStreamer 的 webrtcbin (C)
- https://github.com/shinyoshiaki/werift-webrtc(打字稿)
- https://github.com/pion/webrtc(戈兰语)
- https://github.com/webrtc-rs/webrtc(生锈)
- https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c (C/Embedded)
- https://webrtc.googlesource.com/src/ (C++)
- https://github.com/rawrtc/rawrtc (C++)
- https://github.com/sipsorcery-org/sipsorcery (C#)
- https://github.com/paullouisageneau/libdatachannel (C++)
或者你可以 运行 一个 WebRTC 服务器并写一个 extension/modify 它。这会让你工作得更快。
- https://github.com/meetecho/janus-gateway
- https://github.com/jitsi/jitsi-meet
- https://github.com/versatica/mediasoup
- https://github.com/pion/ion-sfu
- https://galene.org
- https://github.com/peer-calls/peer-calls
很高兴回答更有针对性的问题。我认为这取决于 languages/tools 你觉得舒服。
我要创建实时 Web 应用程序并想使用 WebRTC RTCDataChannel 在客户端和服务器之间交换数据。
WebRTC 是为点对点通信而创建的。但是,是否可以在服务器和客户端之间进行数据交换?
是的!您可以使用 WebRTC 实现并从头开始构建您的服务器。感觉就像使用 HTTP 库并设置自己的端点。
- https://github.com/aiortc/aiortc (Python)
- GStreamer 的 webrtcbin (C)
- https://github.com/shinyoshiaki/werift-webrtc(打字稿)
- https://github.com/pion/webrtc(戈兰语)
- https://github.com/webrtc-rs/webrtc(生锈)
- https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c (C/Embedded)
- https://webrtc.googlesource.com/src/ (C++)
- https://github.com/rawrtc/rawrtc (C++)
- https://github.com/sipsorcery-org/sipsorcery (C#)
- https://github.com/paullouisageneau/libdatachannel (C++)
或者你可以 运行 一个 WebRTC 服务器并写一个 extension/modify 它。这会让你工作得更快。
- https://github.com/meetecho/janus-gateway
- https://github.com/jitsi/jitsi-meet
- https://github.com/versatica/mediasoup
- https://github.com/pion/ion-sfu
- https://galene.org
- https://github.com/peer-calls/peer-calls
很高兴回答更有针对性的问题。我认为这取决于 languages/tools 你觉得舒服。