WebRTC Video Chat Signaling

Let PubNub be your signal protocol service, and combine it with a hosted WebRTC solution for reliable and fast video/audio, all in the browser.


PubNub Staff
PubNub Staff

What PubNub Does

  • Signaling to establish the peer-to-peer connection and coordinate communication

  • Transfer metadata pre-call

What PubNub Doesn’t Do

  • Provide a server for WebRTC

  • Stream video and audio

  • Provide a full hosted WebRTC solution or SDK

  • Record and store the video/audio stream

For more details on what we do, and what we don’t do, check out this article.

The following demo uses PubNub for signaling to transfer the metadata and establish the peer-to-peer connection. Once the connection is established, the video and voice runs on public Google STUN/TURN servers.

Basic Concepts Of WebRTC Calling

Our demo utilizes PubNub Pub/Sub Messaging to allow users to dial (publish) and receive (subscribe) WebRTC phone calls. To add voice and video live stream, we used JavaScript and a Google public STUN server.

Making a WebRTC Phone Call

var session = phone.dial('123-456');

Receiving a WebRTC Phone Call

    // On Call Receiving

Adding Voice and Video Live Stream

        // Append Live Video and Voice Feed

What Can You Build With A WebRTC Simple Calling API?

There are many applications for WebRTC with more to be discovered soon. With the wide-spread support and availability of WebRTC on the web and full mobile support there’s good reason to get started with WebRTC as your voice/video streaming solution for users who will be communicating in real time.

Using PubNub and a hosted WebRTC solution, there are a plethora of important and useful applications which may be built. Some ideas:

  1. Amazon Mayday Help Button

  2. Salesforce SOS Help Button

  3. WebRTC Skype Replica

  4. Traditional Phone Replacement

  5. Chatroulette

  6. VoIP Replacement

  7. Facetime

  8. Inbound Sales Calls

  9. Easy Remote Meetings

  10. Call Assistant or Specialists

  11. Big Screen Public Announcement

  12. Live Presentations

Feedback & Support

Need help? Contact PubNub Support.

More Demos for you



Doodle with strangers on InterWeb! This is a very simple multi-user...

Learn more

Talk to an expert

Contact Sales