Android : MediaPlayer : How to disable audio when seeking
I am using mediaplayer class to play audio, in which i am using seekTo, onSeekCompletion() routines to implement seeking.
My problem is that while seeking i can hear sound. How to avoid playing sound while seeking.
One开发者_开发问答 option that i have is to pause first then do seek. but Is there other settings or Mediaplayer API to do this.
Thanks in advance.
I think you'll have to do the pause thing manually, as you're saying it. I haven't come across any such option in media player. look for onProgressChanged event of seek bar.
精彩评论