I am using the video player from link where I have a problem in the next class link
With the following method:
protected Runnable updateTimeRunnable = new Runnable() {
public void run() {
updateCounter();
TIME_THREAD.postDelayed(this, 200);
}
};
Configure media player with the setLooping method so that the video is restarted upon completion. my problem is that when the video is restarted, only the updateCounter method that is being called from the run method is executed once. As you can see, the updateCounter method is the one that updates the seconds of the video. at the moment of restarting the video, it is left only in the second one, and it does not happen there. Note that when restarting the video I'm restarting the second 2 with seekTo ();.