Android Mediaplayer: Video Seek Causes Onseekcomplete To Be Called Twice
What am I doing wrong here? I set up onSeekCompleteListener, I prepare a movie, I do a seek. Right away onSeekComplete is called. Then after a delay I play the movie. And then onSe
Solution 1:
Unfortunately I cannot add comments to your question, but I'm having the same problem.
I also noticed that, when the onSeekComplete is called the first time and you output currentMediaPostition(), it returns the same media position as it was called through seekTo(msec); which is fine.
But the second call to onSeekComplete (when the media starts) will output an other value (up to multiple seconds more or even less).
So I think the second call comes from the start() method. If you raise the delay from 1000ms to 3000ms, the call comes also later..
Post a Comment for "Android Mediaplayer: Video Seek Causes Onseekcomplete To Be Called Twice"