Fixed a continuous playback issue where playback time and total time are only tested in the ended state