Add function to auto-resume playback.