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.
1 Answer. Show activity on this post. MediaPlayer has an OnCompletionListener callback you can register to get notified when playback stops.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With