Real-time video communication via WebRTC (I.)
Real-time video communication via WEBRTC (II.)
Real-time video communication via WEBRTC (iii)
In this article we continue to learn about WebRTC 's related Api,rtcpeerconnectiont and Rtcdatachannel.
Rtcpeerconnection
Rtcpeerconnection is a WEBRTC component that addresses the stability and efficiency of data flow communication. The following is an architectural diagram of WebRTC , showing the rules of rtcpeerconnection, and you will find that the green ones are quite complex.
From the JavaScript point of view, the most important thing to understand about this diagram is to understand the rtcpeerconnection part. WebRTC has done a lot of work on codecs and protocols, making real-time communications possible, even in unreliable networks.
The code from the signal point of view shows a simple example of the application of the WEBRTC process: Demo Rtcpeerconnection example.
Rtcpeerconnection without a server
The following code is from Webrtc-demos.appspot.com, the demo is a local and remote Rtcpeerconnection Web-based connection. This example has little practical use-both the request and the requested Party are on the same page. However, the workflow of the Rtcpeerconnetion API can be seen more clearly in this example, and they can exchange information directly through the Rtcpeerconnection object on the page without the need to use an intermediary signaling mechanism.
In this example, the PC1 is the local endpoint (the caller), and the PC2 represents the remote endpoint (the callee).
。。。。
Read the original: real-time video communication via WEBRTC (iii)
Real-time video communication via WEBRTC (iii)