I have developed an app to time my exercise. When I play an internal sound "one minute" to notify my exercise period has one minute to go it causes my external (default) music player to pause. I want to find a way to prevent the player from pausing.
I have searched the internet for an app that can do this. I have also searched for a setting on my phone to prevent this. I can not seem to find a way to accomplish this.
No Sir,
I have music running on my default Phone Music app and I want to player sounds (short) within my MIT app inventor app without it causing my (external to MIT) music from being put into pause mode
You want to see blocks of my player playing a single wave? What good will that serve?
My external music player is external. Most Android phone come default that when another sound is played on the music channel they automatically cause the player to go into pause.
That is the all of the story. If you want me to show you blocks then I will gladly do so but the blocks are just simply to play a sound. Atypical
external = outside my MIT app. "Sound" is the name of the app. Came with the phone and I use it to play my music. It is a separate app on the phone and is not inside my app ??????
How can I explain this differently?
internal = using "player" inside my MIT app. When I play the sound in my MIT app it causes the music player to go into pause. This causes the music to stop.
Part of this exercise app I designed is to put it in Airplane Mode so that there will be no interruptions during workout. The notification channel wont work in this case but thanks for the very good idea
Thank you Taifun. I rather expected that to be the answer but I am disappointed that it is.
I was fairly sure if anyone knew the answer it would be you. This question requires a knowledge of the OS.
It also requires an understanding of what "external" means I have learned
Pretty sure OP's saying that they're playing music from the phone through an app, but when they start the Player component, the audio being played from outside the app pauses. It does seem pretty difficult to explain tbh...
This is not possible with the Player component or the TaifunPlayer extension (that is based on the MediaPlayer). But it is possible with the ExoPlayer and with another Player extension that I recieved for testing purpose (not published yet). The ExoPlayer component is only avialable in Kodular. But there are extensions for it.
Playing a timed sound from a seperate AppInventor app
Result: no interruption
My situation:
Playing music from default android system music player
Playing a timed short sound from my app
Result: auto-pause default android music player
AGAIN: TaiFun had it right when he stated:
This is not something you can configure from within your app but from the music player app...
You could try several music player apps and probably you can find a player, which does not pause...
If you program a music player in App Inventor there is the event OtherPlayerStarted, which can be used to pause the music or not
This problem of mine is an OS (operating system) problem . The default player chose to use the option of OtherPlayerStarted. The Android OS has this option built in. There are multiple old articals on Inet discussing this and:
Some claim there is a setting somewhere to override this (no luck finding it on mine)
A few claim there once was an app to change the system setting but the app has disappeared long ago
As I said and fully agree with TaiFun, this is an operating system problem. I would love to know how to override it but do not know how or IF