I would recommend that you look at jmf for your server side.Compile the jmfStudio that comes with and pull it apart,it will show you a lot about the basics behind what you want.