I am streaming audio using MediaPlayer
on Android.
I want my app to change buffering interval if network is slow i.e. initially cache 5% of song before starting playback than if all cached data already played but new portion is not ready yet cache next 10% and so on. The main point is to avoid song continually stopping and restarting on a slow network.
According to this topic I can't change buffer size for MediaPlayer
. Maybe someone has any other idea how I can achieve this?
Thanks in advance.