What is WebRTC
WebRTc is a open source project that provides that allow web browsers and mobile application to communicate in realtime. It allows video , audio , files sharing betweeen peer to peer without need of any server.
How Does WebRTC Work?
1. Peer-to-Peer Connections:
This means that data is transmitted directly between the users' devices without passing through a central server, which reduces latency and improves performance.
2. Signaling:
To establish a connection, WebRTC requires a signaling mechanism to exchange session description. Http or socket connection can be used to exchange description through a simple server.
3. Media Capture and Streams:
WebRTC provides simple APIs for accessing audio and video streams from the user's device using the getUserMedia API. These streams can then be transmitted over the network to other peers using the RTCPeerConnection API.