hi skink,
Thanks for your reply, I am using server side code to receive each
frame is perfect. but when i use this server for mediaRecorder it gives the
invalid stream header: 00000000, i am using
ObjectInputStream to receive the data. on client side (android), i am using
the ParcelFileDescriptor.fromSocket(socket), is ParcelFileDescriptor send video
in object form?
//// here is my server side code.
try
{
// create stream to Network
ois = new ObjectInputStream(clientSocket.getInputStream());
// create stream to file
FileOutputStream fos = new FileOutputStream("video.3gp", true);
ObjectOutputStream out = new ObjectOutputStream(fos);
while(true)
{
// read data in object form from network
byte [] byt = (byte[]) ois.readObject();
// write data to file
out.write(byt);
out.flush();
}
}
catch (Exception e)
{
System.out.println(e.getMessage());
}
Thanks again,
> Date: Wed, 25 Jan 2012 00:17:28 -0800
> Subject: Re: [android-developers] Re: Encoder???
> From: [email protected]
> To: [email protected]
>
>
>
> Muhammad UMER wrote:
> > hi,
> > I go through this blog as you suggest,
> >
> >
> > http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system
> >
> > guy, just told how to send from android on network but doesn't told how to
> > receive it on PC server.
> >
> > Thanks and Regards
> > umer
> >
> >
> >
>
> when you tried to send frame by frame as a Bitmap, did you have server
> side implemented?
>
> now there should be no difference: just write down to the file every
> bit if data you got from the android client
>
> pskink
>
> --
> 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
--
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