Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can someone explain the WebRTC API Documentation?

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

My question is fairly simple for those who are familiar with this API. All I want to know is where can I find documentation that has example code for a client using this API, or if that doesn't exist, can you provide a working example under the current specifications? Either a demo, or just some "simple" code to connect to a STUN server and demonstrate basic functionality of this API.

Please note that I am not asking for a deprecated client. For example, webkitPeerConnection is deprecated, while webkitRTCPeerConnection as specified in the link, is now the current constructor.

like image 869
Patrick Roberts Avatar asked Jan 14 '23 18:01

Patrick Roberts


1 Answers

I've created a guide to resources: Getting Started With WebRTC.

I've also updated the WebRTC article on HTML5 Rocks.

Above all, I'd recommend reading through the simple RTCPeerCconnection example in the W3C Editor's Draft. This gives a complete but comprehensible outline of RTCPeerConnection, including signalling.

Signalling is the process of exchanging session control messages, network and media information. From a JavaScript perspective, this is probably the hardest part of WebRTC to understand, and the most important to get to grips with.

webkitRTCPeerConnection is the name of the implementation now in Chrome. The prefix will be removed once the standardisation process has stabilised.

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

like image 136
Sam Dutton Avatar answered Jan 17 '23 08:01

Sam Dutton