Can someone explain the WebRTC API documentation?

So, I found this W3 article on WebRTC , looking for a way to make a video chat program that works completely in a browser without plugins (and noted that MediaStream seems to work only in Chrome, as far as I know).

My question is pretty simple for anyone familiar with this API. All I want to know is where I can find documentation that has sample code for a client using this API, or if this does not exist, can you provide a working example in accordance with current specifications? Either a demo, or just a β€œsimple” code to connect to a STUN server and a demonstration of the main functions of this API.

Please note that I am not asking for outdated clients. For example, webkitPeerConnection deprecated, and webkitRTCPeerConnection , as indicated in the link, is now the current constructor.

+4
source share
1 answer

I created a resource guide: Getting started with WebRTC .

I also updated the WebRTC article on HTML5 rocks .

First of all, I recommend reading the simple RTCPeerCconnection example in the W3C editor editor. This gives a complete but understandable RTCPeerConnection scheme, including signaling.

Signaling is the process of exchanging session management messages, network information, and multimedia. From a JavaScript perspective, this is probably the most difficult part of WebRTC to understand, and most importantly, to deal with it.

webkitRTCPeerConnection is the name of the implementation now in Chrome. The prefix will be removed after the stabilization of the standardization process.

MediaStream is implemented in Chrome, Opera and Firefox: see the cross-platform example in simpl.info/gum .

+9
source

All Articles