You can create a sleep timer to stop the music after a certain time.
Adiga oo adeegsanaaya saacada laga heli karo arjiga macruufka saacada waxaan iskula jaan qaadi karnaa in muusigga ciyaarayaa istaago waqti cayiman