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

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -