How are data channels negotiated between two peers with WebRTC?

后端 未结 2 1790
心在旅途
心在旅途 2021-02-15 05:00

The WebRTC RTCPeerConnection interface has a createDataChannel method and an ondatachannel event handler. How do these interact? How do I create a single data chann

2条回答
  •  别那么骄傲
    2021-02-15 05:37

    Here's a very in-depth article about the particulars of peer-to-peer...

    https://blog.sessionstack.com/how-javascript-works-webrtc-and-the-mechanics-of-peer-to-peer-connectivity-87cc56c1d0ab

    Primary sources...

    • https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection
    • https://developer.mozilla.org/en-US/docs/Web/API/Media_Streams_API
    • https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel

    The mother load of peer-to-peer projects...

    https://github.com/kgryte/awesome-peer-to-peer

提交回复
热议问题