1
votes

I was going through this PubNub WebRTC demo. https://kevingleason.me/SimpleRTC/minivid.html Which works fine within same network (same browser or different devices across same network). But I tried using it over internet, I am able to connect a call but can not see anything but a black screen. This is the source for same tutorial https://github.com/pubnub/SimpleRTC I have gone through many such application, such as AndroidRTC and I face same problem (black screen after connection over internet). I am unable to figure out why, any help is appreciated.

1
Are you using a TURN/STUN service to punch holes through the network? Xirsys.com is an example of such a service.Michael Gorham
I want to use PubNub data stream network as it is free and don't have to pay for any of the bandwidth, unlike Xirsys. Please help me solve the problem related to PubNub itself.AgR
NOTE: PubNub is free up to 100 daily active devices and 1MM msgs/month. And PubNub is only the signaling part of the full WebRTC solution. Xirsys provides hosted video streaming which you will likely need for any production ready app. You should review this SO thread about PubNub/WebRTC.Craig Conover
Can I integrate webRTC functionalities in my application without using PubNub or Xirsys and directly using webRTC api. I am new to this and hence not quite sure. Please provide some sources if possible.AgR
@mtbikemike is right. PubNub (or similar signal protocol to get through firewall issues) is required and definitely required to improve the QoS of connecting (call) and disconnecting (hangup). HTML5Rocks.com has great, unbiased content about all this.Craig Conover

1 Answers

0
votes

You need some sort of signaling mechanism (PubNub, Firebase, or your own software [nodejs seems the preferred choice these days]) to get the webRTC API communicating P2P on your local network. To get webRTC to work from one network to another you need a STUN server/service. Google provides free stun servers (stun:stun.l.google.com:19302). To get webRTC to traverse strict firewall settings and complicated networks you need a TURN server/service like xirsys.com.

This article covers it all ... http://www.html5rocks.com/en/tutorials/webrtc/infrastructure/