there are a number of ways u can do this. u may use socket/streams.but i did it 2 years back using JMF.