The sleep timer will automatically stop whatever’s playing after a set time. For example, if you know it takes about 15 minutes to doze off and set the timer for that duration, YouTube will ...