fix #24628: Play always starts in the wrong place + fixes for loop playback and repeat