How to check if bluetooth headphones are connected and playing?

Does anyone have an idea how to check whether the sound is played directly on the phone or through bluetooth headphones?

In the internet radio application, I would like the sound to be paused after the car exits. I searched everywhere and found no solution. Perhaps someone knows how to do this or wants to write extension. Paid of course.

1 Like

You can use this extension App Inventor Extensions: Headset Plug Status | Pura Vida Apps by @Taifun to detect that whether the sound is played directly on the phone or through bluetooth headphones?

so you can program it like if the head phone is plugged in then perform the task you want and if headphone plugged in = false then it performs the task you want

You can use this extension to get, Is the Bluetooth Enabled or Not, If the Bluetooth Enabled then play the music in it, if not then play in the device’s speaker.

1 Like

if you found my answer useful then mark it as the solution

1 Like

This extension only works with wired headphones.

Bluetooth is not disconnecting. Only the audio channel changes. it also doesn’t work.

Not sure you may ask @taifun for this

1 Like