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

Add support for RemoteControllerClient #8

Open
artem-zinnatullin opened this issue Jul 12, 2014 · 12 comments
Open

Add support for RemoteControllerClient #8

artem-zinnatullin opened this issue Jul 12, 2014 · 12 comments

Comments

@artem-zinnatullin
Copy link
Owner

No description provided.

@vkravets
Copy link

Do you have plans to implement this or you waiting PR for this?

@artem-zinnatullin
Copy link
Owner Author

I am waiting for PR for this issue, I have some workarounds that can help with implementation, I'll push them today

@vkravets
Copy link

Ok, thanks a lot

2014-07-14 14:57 GMT+03:00 Artem notifications@github.com:

I am waiting for PR for this issue, I have some workarounds that can help
with implementation, I'll push them today


Reply to this email directly or view it on GitHub
#8 (comment)
.

@vkravets
Copy link

Any updates about workarounds?

@artem-zinnatullin
Copy link
Owner Author

Oh, sure, give me 20 minutes

@artem-zinnatullin
Copy link
Owner Author

@vkravets I pushed my workarounds to issue-8 branch, please check RemoteControllerClientService

Here are some useful links about it:
http://developer.android.com/reference/android/media/RemoteControlClient.html

And extra useful link from xda: http://forum.xda-developers.com/showthread.php?t=2579415

Also, as I remember, it requires permission from Android settings -> special abilities or something similar.

And current workaround will work only on api >= 19

@artem-zinnatullin
Copy link
Owner Author

Also, as I remember, I faced this problems:

  1. Understand from which player music is playing
  2. Understand all music playing states
  3. Conflicts with receiving info from RemoteControllerClient and CommonMusicAppReceivers simultaneously
  4. Support for api lower 19

@vkravets
Copy link

It's great but on my phone I have 4.2.2 which have API 17 level =(
Thus I cannot even check this workaround =(

@vkravets
Copy link

It seems we need to use this one, from the same author =)
http://forum.xda-developers.com/showthread.php?p=45288378

@artem-zinnatullin
Copy link
Owner Author

Yep, there are workarounds for RemoteControllerClient on api < 19, also, you can check it on the Emulator!

@ilya-murzinov
Copy link
Collaborator

@artem-zinnatullin, don't you think, we should concentrate on this?
Wouldn't it be the killer-feature, I mean scrobbling from literally ANYTHING that can play music?

BTW, RemoteController is deprecated now, there is MediaController and also MediaControllerCompat which, I beleive, means that we don't have to worry about old versions support.
Did you have a look at this?

@artem-zinnatullin
Copy link
Owner Author

@ilya-murzinov yes, definitely! Implementing such universal media listener will give support for 99% of media players.

I checked MediaControllerCompat, I think it's the solution.

So, I think, you can finish Material Design, we will prepare and publish release and then work on this issue

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

No branches or pull requests

3 participants