I am trying to implement video chat using Android 2.3.4. I am using 
MediaRecorder and setting output file as local socket descriptor. The 
problem comes when trying to reconstructing the received bytes into a valid 
video. I am reading 1400 bytes from the socket and for now I am simply 
writing the read bytes from the socket to a file but I cannot play that file 
as a valid video and I see the following error in logcat:

*D/VideoView(  580): Error: 1,-2147483648*

I am using H.264 video encoder, I don't know whether I am messing something 
in the header while reading from the socket but if in the MediaRecorder I 
set the output file to a path within the file system, I can open and play 
that file as a video without any problem.

Any suggestion or ideas to above problem will be helpful.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to