Hi,
I am using the TCP socket to send data to my desktop server. but
first i want to convert the NV21 format to 3gp form also compress it
and create the byte array of this frame to send over a TCP socket.
then the server will write this live to video file.
/////// Here is my client side code
public void onPreviewFrame(byte[] data, Camera camera) {
///// how to encode this byte array data, convert this NV21
format to 3gp video formate and send this video to server
DataOutputStream dos = new
DataOutputStream(socket.getOutputStream());
//BufferedOutputStream imagebos = new
BufferedOutputStream(dos);
dos.writeInt(len);
if (len > 0) {
/// this will write to socket
imagebos.write(myByteArray, start, len);
}
I really need your help, I am stuck here for to many days. please help
me.
Thanks and Regards
umer
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en