Real-time video communication via WEBRTC (iii)

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.