Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hiiii


I am developing a online video streaming application...i need to send the captured video from one android device to another device over wifi...at present i need to just stream the captured video over socket connection and save the video file in other device.. i am able to establish socket connection between the devices and save an offline video...and also capture the video and save the video file in sdcard...now i have to save the file while its capturing the video..

C#
clientSocket = new Socket(SERVERIP,SERVERPORT);
                             pfd = ParcelFileDescriptor.fromSocket(clientSocket);
 mediaRecorder.setOutputFile(pfd.getFileDescriptor());



I have used this means i am setting the output file path of the recorder as pfd.getFileDescriptor.. but it is not able to stream...the application just force closes...wen i click on the button to record...

I have searched for so long and am able to get this solution only..and i had also tried to capture bytes and send by OnPreviewFrame();...it was not able to stream since bytes was captured during the time of preview...once recording was start the application again force closed...so what is the solution to proceed..i have been stuck up here for long and i have been testing application on Android version 2.3.6

Thanks and Regards,
Divya
Posted
Updated 21-Aug-13 20:29pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900