Play/Pause System Music

Hi, I am making an MIT App Inventor that connects my phone with an ESP32 via BLE.

I want to add this functionality:
when a button is pressed:
if any music on phone is playing (any other music player app)
Pause/play that music.

You can think of it as a simple bluetooth headphone , on which if I press the pause/play button, any music, be it youtube, music app etc, it pauses/plays.

Can we do something similar in MIT AI2?

1 Like

If some other musiic is playing and you start playing music in your app, then theoretically the other music should stop automatically

Taifun

Hello, ibruuhh.

Were you able to get a solution? I can't find anything similar to it.

Regards.

Dear SMH, I was unable to find any solution for it so I decided to skip this feature in my app. Apologies for getting to you llate. Best of Luck