Smart audiobook reader does something like this and it is very handy. It resets the sleep timer if it detects a "shake". It means that I can set a short sleep timer but that playback doesn't get paused if I'm walking around with or using the phone.
I would also suggest reseting the countdown if the user interacts with the player (pressing pause/play/ff/rewind/swipe). It is a little annoying to just press play and then have the countdown time expire shortly after.
Smart audiobook reader does something like this and it is very handy. It resets the sleep timer if it detects a "shake". It means that I can set a short sleep timer but that playback doesn't get paused if I'm walking around with or using the phone.
I would also suggest reseting the countdown if the user interacts with the player (pressing pause/play/ff/rewind/swipe). It is a little annoying to just press play and then have the countdown time expire shortly after.