MediaPlayer / VideoView - stream from url and then save video after caching?

I want to stream optimized video streaming from a URL (HTTP) in order to minimize the delay before starting playback, and then save it in the cache for future games. I can't seem to do this since MediaPlayer / VideoView does not seem to offer any way to get a video descriptor that I can use to write it to a file.

It seems crazy that I will need to first transfer it, and then download it a second time, in order to be able to cache it, or lose streaming, and just download it all in the first place. I have everything in memory, but the Android API does not give me access to it.

Others asked about this a while ago, but there were few answers. Does anyone have a definitive answer to this?
+6
source share

All Articles