Android MediaPlayer wrong track duration -


the problem mp plays less time track duration is. track ends before should in few seconds. i've got bug on long tracks (one hour , more). suggestions? thanks.

it different duration values mediastore.audio.media.duration , mediaplayer.getduration(). using last 1 solved problem. should set follow code in mp oncompletion(): mp.seekto(mp.getduration()).


Comments

Popular posts from this blog

c# - HttpResponseMessage System.InvalidOperationException -

sql - Postgresql error: "failed to find conversion function from unknown to text" -