Rockbox

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Patches
  • Category Music playback
  • Assigned To No-one
  • Operating System Android
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by mgmuscari_ - 2011-04-25

FS#12080 - Scrobbledroid API support for Android

Adding last.fm scrobbling support to the Android version via one of the existing Android Last.fm apps is actually very easy - the log file approach doesn't seem to be compatible with e.g. the actual Last.fm app. Last.fm supports the scrobbledroid api. Adding scrobbledroid intents into the RunForegroundManager class adds support for scrobbling in about 10 lines of code. Attached is a patch to add in the appropriate intent creation and sending. This code could be modified to allow toggling via the settings page, but I don't know much about the native framebuffer code for the UI that is used by rockbox for android. I leave that to somebody else to implement if this is deemed to be too inflexible. I just want to submit this code so that others may enjoy last.fm support without having to jump through hoops to upload log files to last.fm on Android devices.

I'm not even sure any Rockbox-side code should be added. If you don't want to scrobble with this API, it makes more sense to disable scrobbling in the Android-side scrobbling-app, I'd say?

Now I just hope my currently installed scrobbling app uses this API.

That's a good point. FWIW the official last.fm client supports scrobbledroid. As far as I know there are two major scrobbling api's on android. I haven't looked into the other one, but it's probably just as easy to implement.

This appears to have stranded in a "everyone wants it to conform to every possible use case" situation.

See from http://www.rockbox.org/irc/log-20110504#09:34:29 and onward.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing