How to stop other app’s music play in the background when my game is launched and playing?
Do I have set something in settings.lua file?
Urgent!! Please help!!
How to stop other app’s music play in the background when my game is launched and playing?
Do I have set something in settings.lua file?
Urgent!! Please help!!
As far as I know, that’s the responsibility of the other apps.
If it is an app thats running in the background (like a music app) there’s nothing you can do, as that is the purpose of these apps.
If it is another game or application and it continues running in the background than it is not your fault. (and nothing you can prevent)
Can anyone back this up or prove me wrong?
On iOS, the audio library has some hidden/undocumented/unsupported features that will enable your app to play its sounds while other apps play music in the background. Many people prefer this. People like to have their own music playing but still get app audio. However the default on iOS is to stop background music when your app starts playing sounds. This is contrary to what you’re reporting. Also these hidden/undocumented/unsupported features don’t seem to work in later versions of iOS anyway.
On Android, we don’t have any thing that let’s you control background music. I thought the default was to turn it off. I don’t know what the expected behavior is for Windows or OS X desktop.
Rob
Like building music streaming app, when the app’s music is playing, we have to stop other app’s music currently playing in background automatically. It’s Android’s requirements, so call “Audio focus”.
Documents:
https://developer.android.com/training/managing-audio/audio-focus.html
My app is facing this issue. So is there any other method to solve this issue?
Bear with me of English:)
There are a couple of things you can consider:
There is no guarantee that our engineering team will take on this but I know they are going to work on some other audio things, so if there is interest in this, they might add it. The more votes the better.
Rob
Vote here, lets get this officially supported. Having hidden/undocumented/unsupported libraries that are so critical to user experience is bad for business.
We need a feature request and some votes before we can do anything. The request that @simon.natt is a different request.
OK. Thank you so much for the replies and suggestions!!
The request that I would like to see is to have the undocumented audio libraries that you are referring to become officially supported by Corona and added to the API. Ideally, officially supporting external background music playback across all platforms would be the stretch goal.
I will create another feature request and provide details in it when I get a chance.
Edit: thanks Rob
Cool~~
Thanks!!
@simon.natt there is an existing feature request to enable background music while apps are running. The OP here wants the ability to turn it off. We do not have a feature request for that.
As far as I know, that’s the responsibility of the other apps.
If it is an app thats running in the background (like a music app) there’s nothing you can do, as that is the purpose of these apps.
If it is another game or application and it continues running in the background than it is not your fault. (and nothing you can prevent)
Can anyone back this up or prove me wrong?
On iOS, the audio library has some hidden/undocumented/unsupported features that will enable your app to play its sounds while other apps play music in the background. Many people prefer this. People like to have their own music playing but still get app audio. However the default on iOS is to stop background music when your app starts playing sounds. This is contrary to what you’re reporting. Also these hidden/undocumented/unsupported features don’t seem to work in later versions of iOS anyway.
On Android, we don’t have any thing that let’s you control background music. I thought the default was to turn it off. I don’t know what the expected behavior is for Windows or OS X desktop.
Rob
Like building music streaming app, when the app’s music is playing, we have to stop other app’s music currently playing in background automatically. It’s Android’s requirements, so call “Audio focus”.
Documents:
https://developer.android.com/training/managing-audio/audio-focus.html
My app is facing this issue. So is there any other method to solve this issue?
Bear with me of English:)
There are a couple of things you can consider:
There is no guarantee that our engineering team will take on this but I know they are going to work on some other audio things, so if there is interest in this, they might add it. The more votes the better.
Rob
Vote here, lets get this officially supported. Having hidden/undocumented/unsupported libraries that are so critical to user experience is bad for business.
We need a feature request and some votes before we can do anything. The request that @simon.natt is a different request.
OK. Thank you so much for the replies and suggestions!!