3 ms·
The point of WebRTC is to allow real time communication in the browser. You can do this via p2p data streaming without any services but you are limited to p2p a
by songzme 13y ago
The point of WebRTC is to allow real time communication in the browser. You can do this via p2p data streaming without any services but you are limited to p2p and its shortcomings (like maximum of 2 users, blocked ports, firewall, etc).
By using a service like OpenTok, you can augment your WebRTC experience because you well be able to stream to thousands of users, tunnel through blocked ports, and generally more firewall friendly.
Great question tho.
- ilaksh 13y agoI didn't know that webrtc was limited to two users. If it is how does opentok get around that? My understanding of webrtc was that it uses UDP so it can get around firewalls and such by using STUN or things like that. So my experiments with webrgc used an open source library that was using some Google sever and the author of the library's server for making connections and also firebase. I think k the guys name was muaz Kahn or something. Anyway I think all you really need servers for is the initial connection establishment. And there are free servers up providing that. So if webrtc truly has a limitation on 2 peers then I doubt opentok actually has any magic patch for webrtc.. maybe they have a script that creates a bunch of Iframes or something.
- songzme 13y agoTo use webrtc with more than 2 users you would need a webrtc streaming server that receives an incoming webrtc packet and sends it to all listening connections. Like a pub-sub model