title: how to accomplish the video chat between ios devices using AVFoundation framework and asp.net ( server side)
body: <p>I want to make a video chat app which allows two users to do video chat using there iphones or ipad2, I started with using AVFoundation framework and using socket connection (CFStreams) to open a socket connection with my server (server side language is asp.net) let me explain in detail what I have achieved till now :)</p>
  
  <p>1) I created avcapture session which gives the frames at regular intervals using captureOutput:didOutputSampleBuffer:fromConnection delegate.<br/>
  2) I have established a socket connection to my server and have obtained two streams<br/>
  3) In the delegate I convert the sample buffer in to (uint8_t *)buffer and send to my output stream<br/>
  4) at .net end I write those bytes in a file <br/>
  5) when my stream delegates receives the data back from server I create a assest with the url of the file made in server, create a avplayeritem and then play it in avplayer.<br/></p>
  
  <p>unfortunately it does not show anything.. please can anyone give me directions regarding whether this approach is right or wrong, what else I can do to achieve my aim?   </p>