Skip to content

How to gate playback on Bluetooth Headset connection #15

Closed
@yschimke

Description

@yschimke

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?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions