Hello I would like to ask you if it is possible to stream captured video from an android phone without saving the whole video first. I studied the MediaRecorder class and it seems that media APIS doenst support streaming and that you cannot access the video or audio stream during the recording process before save it to a file first, encode it etc. Any clue about this?
Yes, you right. The standart API doesn't provide any functions for getting raw encoded video stream from MediaRecorder. However there is one dirty workaround. As you know the MediaRecorder can write to file or you can pass to it FileDescriptor. The last one you can get from LocalSocket class. So you need to create a socket interlayer for receiving a video stream. But you need to remember that video is still in 3GPP container. Extract it and have fun.