The web real-time communications or much known as the WebRTC is a free, open project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs.
It is a very exciting, powerful, and highly disruptive cutting-edge technology and standard. WebRTC leverages a set of plugin-free APIs that can be used in both desktop and mobile browsers, and is progressively becoming supported by all major modern browser vendors.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
Peer to Peer
The EMS supports direct peering to HTML5 browsers and devices that support WebRTC. Over the WebRTC channel, the EMS streams low-latency (sub-second) H.264 video and AAC audio for delivery directly to the HTML5 video player. The TCP TURN is now also available for WebRTC connections.
By moving the streaming directly between the end client and the stream originator (for example, a security camera) you remove the largest cost driver of hosting any kind of live streaming service: the bandwidth cost!
Peer to peer works when the EMS is installed and running on the camera, wearable or other such stream creation device. Here is the simplified work flow for Peer to Peer:
The EMS is configured to communicate with an EvoStream Rendezvous Server (ERS). The EMS will maintain that connection to the ERS while it waits for a peer request. The configuration specifies a unique “Room” in which it is waiting.
- an IP address of the ERS to connect to
- a “Room” to connect to
The browser connects to the ERS and requests to join the “Room”
The EMS (on the camera) and the Browser share peering information across the ERS connection.
Using the peering information, the peer connection is established directly between EMS and the Browser and streaming proceeds.
EvoStream provides a hosted EvoStream Rendezvous Server at 188.8.131.52:4545. Click here for the player. This server can be used for testing and for deployment. This can be used with the EMS by issuing the following API command:
startWebRTC ersIP=184.108.40.206 ersPort=4545 roomID=YourRoom
It is VERY IMPORTANT TO NOTE:
- This is a public ERS, and so many people may be using it
- If your RoomID is not unique, it will result in race conditions with other users. You may end up seeing their streams or they may see yours!
- EvoStream intends to make this ERS available at all times, but its uptime is NOT Guaranteed!
For production deployments of Peer To Peer you will want to host your own ERS, or have EvoStream host a separate ERS on your behalf. Please contact EvoStream for more information.