Vishvesh
Vishvesh

Reputation: 522

How to detect video seek start

I am using VideoView, MediaPlayer provides "setOnSeekCompleteListener" to detect seek completion but I would also like to detect seek starts.

Is there a way to detect seek start?

Upvotes: 2

Views: 322

Answers (1)

Vishvesh
Vishvesh

Reputation: 522

I got it working. I over-rode "void seekTo(int pos)" to detect seek start and detected seek end using "setOnSeekCompleteListener".

//    @Override
public void seekTo(int pos)
{
    Log.d("MyApp", "Seek started from " + getCurrentPosition())
    // Perform Task and calling parent class implementation of "seekTo"
    super.seekTo(pos);
}

Upvotes: 1

Related Questions