title: How to play YouTube videos in sync on multiple clients?
body: <p>I'm looking to understand how to build a web app that allows multiple users to view the same YouTube video in sync on their computers. For example, <a href="http://synchtube.com">synchtube.com</a> or <a href="http://watch2gether.com">watch2gether.com</a> </p>
  
  <p>I'm seeking a simple approach that can be implemented using common technologies such as <code>PHP</code>, <code>jQuery</code> and <code>Apache</code>. I'm currently thinking along the lines of polling (or comet long polling but that requires more complex server setup which I hope to avoid), similar to how <code>Ajax</code> chat apps are implemented - that is clients continuously check with the server to see which video is playing. However, I suspect there will be latency issues here so videos will not be completely in sync. I can't think of a better approach yet. </p>
  
  <p>To fellow developer community, any help on the methodology or code snippets are hugely appreciated!</p>