开发者

Android : MediaPlayer : How to disable audio when seeking

开发者 https://www.devze.com 2023-02-07 04:30 出处:网络
I am using mediaplayer class to play audio, in which i am using seekTo, onSeekCompletion() routines to implement 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

精彩评论

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