DIY Chatroulette - 50 lines of code

    image
    A couple of months ago, I invited everyone to a webinar about p2p in Flash, but I did it too late, so for sure a large number of people didn’t get it. The most valuable thing I have learned from this seminar is that peer-to-peer applications in Flash are very easy to do. True, the very hands did not reach this for a very long time.

    But just yesterday, my hands were very combed, and after spending a night I figured out how p2p technology works in Flash. It seemed to me not enough to connect the video streams of the two flash clients, so I decided to do something more interesting:
    1. The user opens the page
    2. Selects a topic for conversation (one of the posts on the main hub)
    3. Talking with everyone who has chosen the same topic.

    Made. Here is my video conferencing example , the client and server sources can be downloaded from here . The minimum requirements for an example are the presence of Flash Player 10 and a web camera.

    UPD: All this stuff is hosted on AppEngine, free quotas may end and everything will stop working. Threw the client on narod.ru. If it won’t work, go here.

    Also popular now: