Taras
Taras

Reputation: 2576

MediaPlayer seekTo doesn't work

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

Answers (2)

ka3ak
ka3ak

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

Slenkra
Slenkra

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

Related Questions