Progressive audio caching library for Android
android, android-mediaplayer
Solution
Looking my projects:
- https://github.com/master255/ImmortalPlayer One thread to read, send and save to cache data. Most simplest way and most fastest work. Complex logic - best way!
- https://github.com/master255/VideoViewCache Simple Videoview with cache. Two threads for play and save data. Bad logic, but if you need then use this.
Problem
I'm using an android MediaPlayer class right now for progressive audio streaming like this: ``` MediaPlayer mp = new MediaPlayer(); mp.setDataSource(audioUrl); mp.prepare(); mp.start(); ``` But MediaPlayer class doesn't provide any caching, and I always need to do this routine: unnecessary network and battery waste So, can someone help me find some library that will provide caching, because I couldn't find any. Thanks