Background sound

How Do I add a background sound which loops? I don’t want a button activity but I want it to play in BG and resumes after it stops. I do know I must use the clock but when I tried the sound starts when the screen1 initializes but stops after 2-3 seconds. any help regarding this is appreciated.
Screenshot%20(424) Screenshot%20(423)

Use exoplayer component

1 Like

1 blocks%20(1)
Load a source. Set loop. Start on initialize. This is all what you need to do.
And When you want a gapless loop you may use the TaifunPlayer extension.


If your song played in 30 seconds, it wont do anything when you are trying to resume nothing.
Try when player.stopped call player1.start. No timers required.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.