i want to add background sound to my app , when the app start the sound should start in loop, and if the user click on mute button the sound will be stop , and remine stop next time, ( i know this logic)
The blocks can probably be refactored to flow better, but in the end this worked for me.
The key is you have to use a Timer and configure the timer to play the audio each time the audio ends.
If you want the audio loop to start when the app opens make sure the Timer is enabled. When the tiimer reaches it’s interval it will execute the blocks in the Fire event, and that’s when the audio will restart.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.