Tagged as API

API Design

By ianloic ianloic

One of the things we’re most excited about is giving developers APIs that they can use to do cool stuff with their music. Having an API is only half the battle though — having an API that’s awesome is more of a challenge but more rewarding too.
I’ve been on a mission to find a way [...]

Genericising status bar text styling

By stevel stevel

Just a quick headsup. Francis worked on 7510 which resulted in a minor API change for 0.5 nightlies.

Specifically, the bug addressed making the ‘playable media link’ effect generic, so rather than just showing in bold, it would actually change classes so that Featherers can style to their liking. (<blink/> FTW!!!)

The side effect this had is that where previously the style could be set by a remote (faceplate.status.style remote), the type should now be set by setting faceplate.status.type. And instead of targeting the faceplate.status.override.style, they should target faceplate.status.override.type.

The 3 types available are: normal, playable, and report.

normal is used for normal links, playable is used for links to media that Songbird can play, and report is used for temporary statusbar overrides, e.g. when reporting the result of drag and drop operations.

Remote property modification in 0.3 vs. 0.4

By stevel stevel

Just recently, we noticed some of our webpage API tests were failing with 0.4 where they passed successfully in 0.3. Worried that we broke our backwards compatibility policy, John investigated and noticed that we exposed some properties as read-write when they shouldn’t have been.

So 0.4 is now doing the right thing (not the write thing, har har har) by not allowing remote webpages to set certain properties on mediaItems that were previously settable. On the plus side, John found a few things that *weren’t* accessible, and fixed those (so now you can access and modify rating and mediaListName, yay!)

Anyway, apologies if you were relying on the 0.3 behaviour of being able to set properties you weren’t supposed to - but in the interest of making Songbird secure and trustworthy - we’ve now locked those properties down.