Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth support #8

Open
adrian-bl opened this issue May 28, 2017 · 6 comments
Open

Bluetooth support #8

adrian-bl opened this issue May 28, 2017 · 6 comments

Comments

@adrian-bl
Copy link
Member

As requested in: vanilla-music/vanilla#598

Would be nice if the headset plugged detection worked also with Bluetooth. After disconnecting it stops, but when the headset is reconnected I have to play manually (not really comfortable on motorcycle with BT helmets as you have to stop).

@brandonkirsch
Copy link

I have working Bluetooth headset detection support added to the headphone detector, but I had to re-arrange the codebase in order to get it to build with Android Studio.

It uses an unprivileged BroadcastReceiver that listens for android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED and launches / plays Vanilla as appropriate.

If I could get a little help building the project, or if you are willing to accept some path re-arrangements, then I would be happy to send over a PR.

@adrian-bl
Copy link
Member Author

Re-arranging the paths would be fine for me (we can also drop ant and switch to gradle).

(Note that i am on vacation right now and only have sporadic internet access, so expect some delays)

@scrunchy
Copy link

scrunchy commented May 4, 2018

Hi, just checking if this was likely to be incorporated any time? Otherwise might look for another means of implementing

@adrian-bl
Copy link
Member Author

No pull request was opened yet.

Also: in the meantime i switched the project to use gradle: building with Android Studio should now work out of the box.

@brandonkirsch
Copy link

Sorry friends - I struggled to correctly convert the project over to Gradle.

I will take a look at @adrian-bl's new codebase and see if I can build it before sending over a patch for Bluetooth support. It's been working properly on my personal (hacked up) copy for about 6 weeks now.

@adrian-bl
Copy link
Member Author

brandonkirsch@ did you find some time to merge your patch into the new project structure?
Also: feel free to post a gist with your changes - i'd be happy to merge them into the existing HEAD for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants