On Jan 12, 2008, at 9:19 PM, philf wrote:

>
> I am just finishing up an update of the XM Radio plugin for SC7.  I  
> have
> a pageicon png that I built for XM, and it is showing up correctly on
> the home screen (via the install.xml file icon) and the pagetitle
> header (via my plugin templates).
>
> But after a bit of poking around, I have not figured out how to have  
> my
> XM icon show up in the player status_header and status_list areas, in
> place of the default "radio tower" image.
>
> Could someone quickly tell me how I set this up?  Thanks...pmf

You need to add a getMetadataFor method to your protocol handler.   
This method returns some info about the current track, such as artist,  
album, title, cover image, bitrate, etc.  You probably don't have all  
this info, but you can get the icon to show up by just doing this:

sub getMetadataFor {
        my ( $class, $client, $url ) = @_;

        return {
                icon => 
Slim::Plugin::YourPlugin::Plugin->_pluginDataFor('icon'),
        };
}

This will use the icon path from install.xml.

See the Pandora, Slacker, and Rhapsody protocol handlers for more  
complete examples.
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to