开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜