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.

Other

Author:

PubNub

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

phone.receive(function(session){
    // On Call Receiving
});

Adding Voice and Video Live Stream

phone.receive(function(session){
    session.connected(function(session){
        // Append Live Video and Voice Feed
        $('#display-div').append(session.video);
    });
});

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 realtime.

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

CoDoodler

CoDoodler

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

Learn more
MouseSpeak

MouseSpeak

Let your mouse do the talking by transmitting your movements and text...

Learn more
10CHAT

10CHAT

A simple chat app powered by PubNub.

Learn more

Talk to an expert

Contact Sales