-2

My code is:

 <!DOCTYPE html> <html>
     <head>
         <script src="https://simplewebrtc.com/latest-v2.js"></script> 
     </head>
     <body>
         <video height="300" id="localVideo"></video>
         <div id="remotesVideos"></div>
     </body> </html>

 <script type="text/javascript">    var webrtc = new SimpleWebRTC({

      localVideoEl: 'localVideo',

      remoteVideosEl: 'remotesVideos',

      autoRequestMedia: true    });

    // we have to wait until it's ready     webrtc.on('readyToCall',
 function () {

      webrtc.joinRoom('Hello');     }); </script>

I want to know if the weight of data (video and audio...) exchanging in the net sits on simplewebrtc.com or my own host?

Patrick Hofman
  • 153,850
  • 22
  • 249
  • 325
Arya Basiri
  • 177
  • 2
  • 14
  • You are going to need to set up your own signaling server as well. You cannot use the sandbox server in production. – xdumaine Dec 14 '15 at 14:01

1 Answers1

1

WebRTC is used for client-to-client communication. Unless that library you're using does something different (see the docs, ask the authors), it's not using any server resources for the peer communication.

https://developer.mozilla.org/en-US/docs/Web/Guide/API/WebRTC says:

WebRTC (where RTC stands for Real-Time Communications) is a technology that enables audio/video streaming and data sharing between browser clients (peers). As a set of standards, WebRTC provides any browser with the ability to share application data and perform teleconferencing peer to peer, without the need to install plug-ins or third-party software.

Shomz
  • 37,421
  • 4
  • 57
  • 85
  • oh really? so how these data(video and audio) are exchanging? – Arya Basiri Dec 13 '15 at 12:58
  • It's a direct peer-to-peer communication, one RTC client to another, the server is there just to connect them and after that no longer cares about what's going on. There's a lot of useful info in the link I gave you. – Shomz Dec 13 '15 at 13:01
  • and where these videos are stored if we want to record them? in my server yeah? – Arya Basiri Dec 13 '15 at 13:02
  • You can store them wherever you want (locally or the server) - you just need to record the stream. Maybe that library you're using can do it for you. – Shomz Dec 13 '15 at 13:05