Closed
Description
I'd like to ensure playback is only active when a bluetooth headset is connected.
For stopping when the audio output changes it seems like .setHandleAudioBecomingNoisy(true)
is the right approach.
Is LoadControl, the right API when the user clicks play to trigger a headset selection before continuing?
I've seen the references in google/ExoPlayer#9694, so I understand I'll need to implement this myself, but am curious which APIs are the right ones to plug into, to effect availableCommands for example? Or maybe allow the command, but launch the Bluetooth settings automatically and wait for a connection before playing?