WebRTC extension » History » Version 4

« Previous - Version 4/11 (diff) - Next » - Current version
Orgest Shehaj, 11/20/2017 10:15 AM

WebRTC extension

The architecture of the WebRTC extension is composed by:

  • Overlay P2P: a peer-to-peer network
  • PSng: who receive an RTP stream and send it to the P2STR plugin
  • P2STR plugin: convert the RTP stream in SRTP and send it to the browser
  • Browser: show the stream in a video tag using the WebRTC api

In the following figure you can see the full architecture of the project.


P2STR is a C plugin implemented inside the Janus WebRTC Gateway.
This plugin receive and parse a VP8 video codec encapsulated inside an RTP (Real-time Transport Protocol) stream.
The P2STR plugin transform the RTP stream in SRTP and sand the stream to the browser. This allows web browsers to show the VP8 stream in a video tag using the WebRTC API.
The WebRTC ("Web Real-Time Communication") is a communications protocols and application programming interfaces that enable real-time communication over peer-to-peer connections.
WebRTC enables applications such as video conferencing, file transfer, chat, or desktop sharing without the need of either internal or external plugins.

The following figure shows the HTTP and Javascript interfaces of P2STR plugin.

P2STR.png (30.9 KB) Orgest Shehaj, 11/16/2017 04:14 PM