title: How to implement Screen Sharing and Controlling for web application (using web sockets)?
body: <p>The intention is to build a screen controlling/sharing to a web page using web socket.</p>
  
  <p>My question is what is the best way to share a screen (or give control to a screen) (using java or c++ server) to a web socket? </p>
  
  <ul>
  <li>how to approach that?</li>
  <li>what is the most optimized way to do it? (sending only changing parts of the screen etc etc...)</li>
  </ul>
  
  <p>Using java Robot, I have been able to capture print-screens and create video, one of the challenges I have found is capturing the mouse cursor state, since Java Robot does not draw the mouse cursor in the print screens, for now I will just use the same the cursor image to add it to the print scree.</p>
  
  <p>This post is similar to : 
  <a href="https://stackoverflow.com/questions/14755601/how-to-implement-screens-sharing-for-web-application">How to implement screens sharing for web application?</a></p>
  
  <p>However, that approach does not mention the screen controlling, it only talks about video streaming the screen, so no possible interaction from the clients.</p>