Using libraries for p2p
Course: WebRTC Basic implementation, advance discussion - chapter 8
As you can see, there is a lot of things we had to know to be able to build a simple app that sends video from one side to another
There are libraries that hide a lot of this complexity (specifically the complexity of the RTCPeerConnectionObject from you).