Callback on VideoView progress
android, android-videoview, listener
Solution
You can use a thread to get the progress.
mRunnable = new Runnable() {
public void run() {
Log.i(TAG, "::run: getCurrentPosition = " + mVideoView.getCurrentPosition());
if(mVideoView.isPlaying()){
mHandler1.postDelayed(this, 250);
}
}
};
mHandler1.post(mRunnable);
Problem
I'm looking for a way to get a callback when a `VideoView` is playing, indicating the video progress. Something like described here, but for a `VideoView`. Polling the current progress every fixed duration seems a bad solution… Is there any listener existing for this that I missed?