Question

I'm developing music app.

I did nothing to support normal wired headphone or headset but I can hear music with my headphones.

Do I have to write some code to support bluetooth headphone or bluetooth headset?

Do I have to buy bluetooth headphone to check it works?

EDIT

Sorry, I did something to support wired headphone.
I wrote code to detect the event that headphone unpluged.
And when headphone unpluged, my music app paused.
Does this code work for bluetooth headphone, too?

I'm using the same code as this answer to detect unpluged-event

Était-ce utile?

La solution

This should normally work, without writing. Maybe you can ask on facebook for someone to test it. But it should work

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top