Getting access to media player cache

Rahul Verma picture Rahul Verma · Oct 3, 2012 · Viewed 15.7k times · Source

I want to move a progressively streamed mp3 file to sd card once it is completely loaded. Is there any way of achieving that.

I've seen that the MediaPlayer completely downloads the whole file while progressive streaming and then we can seek to any part of file. I want to move a fully streamed file to external storage so that future playback do not waste data and battery.

Answer

Asaf Pinhassi picture Asaf Pinhassi · Oct 18, 2015

The idea is to create a proxy that the media player can read from, instead of reading data directly from the web.

I used danikula/AndroidVideoCache which is very simple to build/use. I used it for Audio not Video, but its just the same.