3

Yes,I have a requirement list as follows(maybe it can called simple ideas)

1.Using Camera and MediaRecoder to recording a video (Now I can record and save it to a file)

refer: http://developer.android.com/guide/topics/media/camera.html

2.When recording video,I need send it to my Server for transit (I plan to use socket[TCP] to realize)

3.Server receive socket data and transit it to another client(android/PC)

4.At the same time,Server send video streaming to Android client by socket
(I try to using ParcelFileDescriptor.fromSocket(client),but it always catch IOException:setDataSourceFD failed.: status=0x80000000)

refer: Stream live video from phone to phone using socket fd

5.Android client receive Server's data and play it using MediaPlay and SurfaceView

6.In addition,I want server can switch video streaming from socket data or local file,when server transit data

This is my idea,but don't know if feasible and don't know how to achieve it
I wonder if you can give me some references or examples, thanks


btw, i am first time ask question in stackoverflow,before i always view questions in here,it helpful.if my question not clearly,please tell me,thank you.if i make some mistake,else i hope you tell me,thanks.

4