title: Get a stream of a remote camera
body: <p>I need to start a live stream in a remote computer connected to a webcam,
  then connect to that remote ip address and see the live stream, like a security webcam more or less.
  On my client i want to be able to see the stream in my browser.</p>
  
  <p>What I've tried so far:</p>
  
  <ul>
  <li><p>VLC on the remote pc: I start the stream (MMS, HTTP or RSTP) and then I encapsulate the stream as object in a html page.
  This works, but I have a high latency and not all the browsers support x-vlc-plugin.</p></li>
  <li><p>WebRTC. This seemed to me the best solution. Direct stream, very low latency.
  I tried all the solutions I found in internet, that also integrate node.js. I tried also to build some code myself but the problem is that:</p></li>
  <li>I start the stream on the "server", the remote pc.</li>
  <li>When i go to the client, I type in the browser the ip address and port of the remote PC. In theory I should be able to see the REMOTE stream, but instead the browser asks for permission to use my LOCAL camera!</li>
  </ul>
  
  <p>Do you have some hints or solutions about? What am I doing wrong?
  Last project I tried:</p>
  
  <p><a href="https://github.com/xat/webcam-binaryjs-demo" rel="nofollow">https://github.com/xat/webcam-binaryjs-demo</a></p>
  
  <p>In this project:</p>
  
  <p><a href="https://webrtc.github.io/samples/src/content/peerconnection/multiple-relay/" rel="nofollow">https://webrtc.github.io/samples/src/content/peerconnection/multiple-relay/</a>
  the developer uses a relay of the stream.
  Buttons work but I don't know how to use this, that is how to catch the relay and display it on the client.</p>
  
  <p>Thank you for your suggestions.</p>