Pause the music when screen is locked in android devices

I use play music on channel action at the beginning of the scene.
How can I pause the music when the user locked the mobile screen (for android devices).
And also how can I continue music when the user came back to the game (HTML page).


I think you’ll need something like this:

1 Like