detect playback has stopped.