JRC
JRC

Reputation: 808

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.

Upvotes: 1

Views: 1197

Answers (1)

Aman Aalam
Aman Aalam

Reputation: 11251

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.

Upvotes: 2

Related Questions