title: How to make a P2P streaming using a web browser?
body: <p>I want to create an application for P2P video transmission. In more details, I need the following:</p>
  
  <ol>
  <li>User can switch on a web camera by clicking a button in an application.</li>
  <li>Application starts to take images from the web camera and sends them to a certain location (given by a port and IP address).</li>
  <li>Application starts to accept images send by another application and display them (images) in a window.</li>
  </ol>
  
  <p>There is also one more thing. I would prefer to have everything in a browser. I know that everything can be done with Flash Player from Adobe (an example is <a href="http://chatroulette.com/" rel="nofollow noreferrer">http://chatroulette.com/</a>).</p>
  
  <p>But I would like to know if the same can be done with JavaScripts.</p>
  
  <p>I am sure it the application can be written in Java. But can I use Java to have everything in a Browser. </p>