I need to be able to play a video received over RTSP AND save it to disc (well, the SD card) at the same time. This is a live stream, so I cannot download the entire file first and then play it. I must play and record simultaneously. I can record video from the on board camera using MediaRecorder, and I can receive an RTSP stream using MediaPlayer or VideoView, but I don't know how to combine the two.
MediaRecorder seems to be the only way to record video, but it only supports one video source: the camera. Its setVideoSource() method allows no other sources. Perhaps I need to get an OutputStream somehow, which I can then write to a file?
Thanks for any help.