Currently the Play/Pause button doesn't switch from Pause to Play when the the last time point has been reached.
Open TimeViewer with an STC with multiple time points, press the play button, wait until the last time point is reached.
Play/Pause button state should toggle.
Play/Pause button does not toggle:
https://youtu.be/xnFgfJ1-s-M
Instead of toggling automatically once tmax is reached, we could also simply loop until the user explicitly requests to pause playback?
Also needs a callback from time slider drag events.
Also needs a callback from time slider drag events.
I am not sure to understand what you mean by that. Drag event for the time slider and matplotlib time line are 'active user event'. As opposed to the 'play/pause' button which indicates that the time points are updated automatically.
What I meant is that we need to decide what happens in the following scenario:
I would say it should restart as soon as you let go of the slider, starting at the new slider location. This allows viewing the same activity over and over again just by clicking a point on the slider during playback, which is nice.
it should restart as soon as you let go of the slider, starting at the new slider location.
I believe this is the current behaviour right?

It was last time I tested and might indeed still be true. I was just responding to @hoechenberger's question above:
- should playback be paused?
- or should playback immediately continue once the slider drag event has been finalized?
It was last time I tested and might indeed still be true. I was just responding to @hoechenberger's question above:
Yes, it's still working that way! :)
Most helpful comment
It was last time I tested and might indeed still be true. I was just responding to @hoechenberger's question above: