Does anyone know of any good RTCPeerConnection
tutorials?
I want to livestream webcams from browser to browser. I have websocket
connections from my server to all of the clients, so it should be fairly easy - but what I've found on the topic so far was very confusing.
I don't understand much of it. Can I write my own signalling server, how do I determine usable ports of the clients, etc.
In short: Requesting good links.
And yes I 've found this but didn't find it very coherent (probably because there's not a single code sample in it that doesn't have at least 5 unexplained variables or functions).
WebRTC (Web Real-Time Communication) is a free and open-source project providing web browsers and mobile applications with real-time communication (RTC) via application programming interfaces (APIs).
That, together with Gustavo Garcia's recent blog post on how Google Meet uses WebRTC, made Philipp and Gustavo wonder what that means for the WebRTC bits of both applications. Hence we grabbed webrtc-internals dumps from both applications to do a back-to-back comparison.
To answer your question - yes, you can write your own signaling server, for example by using node.js. You could write it by your own or by using libraries like socketio. You should also have a look at Muaz Khan's Website, it helped me at creating my own chatapplication.
I have written a longer WebRTC tutorial which guides you through all the neccessary steps to create your very own, simple Videoapplication, including signaling. Don`t be shocked by the length, I put a lot of code examples in it.
It would be great if you can tell me if it was understandable for you or if you ran into any errors.
Good luck! :)
EDIT: My tutorial is for those who want to understand how WebRTC works and how to do it without using plugins or libraries. If you just want to build an application you can use libraries like rtcmulticonnection where you just have to write a few lines of code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With