Reputation: 2576
If I call seekTo before start, an audio starts from beginning.
Is it possible to start playing audio from a specific point?
Thanks!
Upvotes: 1
Views: 2435
Reputation: 3201
I've just experienced the same issue. The solution was to use MediaPlayer.OnSeekCompleteListener
.
However in my case there weren't any problems with calling seekTo
before start
if the audio file was relatively short, but if it became longer then it seemed that starting the playback occurred earlier than seekTo
was finished.
Upvotes: 0
Reputation: 830
It seems to be a bug on Android platform, and so far it hasn't been fixed. See this issue here.
Upvotes: 2