I am trying to achieve smooth video scrubbing with Android VideoView
. The seekTo
method of MediaPlayer
is not doing exactly what i want. It does not exactly seek to millisecond i passed in it, it actually plays from/jumps to the nearest position, not the exact I seeked to. Also the frames are showing with a large gaps. Not the exact frame for millisecond.
I came on searching around and found that SEEK_CLOSEST_SYNC
can only seek to the nearest sync frame not the EXACT. It depends on the way the video was generated.
How can i achieve the smooth scrubbing and seek to exact position Even video is paused or playing. Is it possible through Android VideoView
or MediaPlayer
class or should i change the approach?