Media View Toggle Buttons
Tuesday, Feb 2. 2010 – Category: Songbird
One of the things implemented in Purple Rain (the new Feather in Songbird 1.4) was direct toggle buttons to select the current Media View. However, we only implemented them for the built in List View & Filter View buttons. Third party Media Views were still only listed in the arrow-drop-down menu button next to them. I’m happy to say that we’ve landed bug 18538 on trunk yesterday which will allow Media View developers to create and define icons to represent their Media View. They will be automatically inserted into the row of buttons to allow users to more easily switch to the available views.
All the Media View developer needs to do is create an icon file. It must be 22×80, with all four 22×20 states (normal, hover, active, and disabled) vertically stacked in it. Here’s a sample one I created for John M’s excellent Grid View:
All that’s left is to point to it inside the Media View’s install.rdf file. In the same <songbird:mediaPage> section we simply define a new <songbird:contentIcon> value, like so:
<songbird:mediaPage>
<Description>
<songbird:contentIcon>chrome://gridview/skin/mpIcon.png</songbird:contentIcon>
<songbird:contentTitle>Grid View</songbird:contentTitle>
<songbird:contentUrl>chrome://gridview/content/media-page.xul</songbird:contentUrl>
</Description>
</songbird:mediaPage>
That’s all there is to it!
I’ve been hacking on a new Media View for Songbird this week… partly as something fun to do since I’ve wrapped up mashTape, and partly as an excuse for me to play with Canvas.
Here’s a screenshot of my asian pop playlist that doesn’t have too many artists in it. Basically this is a way for me to visualise a playlist or library by artist and album images. It’s handy for me since I tend to recognise things spatially and visually… especially for international artists in languages I can’t read or speak (Chinese, Korean, and Japanese being great examples). For instance, I know that if I place my artist image for 伊藤由奈 in the top-right and scale it bigger than the rest (since I’ve been listening to her a lot lately), it’s easy for me to jump to her music quickly.
Of course this becomes less useful (but makes for a cooler screenshot!) when I do it with my entire library.
update:
I’ve uploaded my first prototype of the view to our add-ons site. Be warned, it could leak memory, and it takes a while to startup the first time you install it since it’s seeding the database, scanning your library, and making requests to Last.fm for artworkRecent posts
- Gesture Lock
(Saturday, Nov 13. 2010 – 12 Comments) - ConnectIn 1.1.1 & HTC Sense UI
(Tuesday, Sep 28. 2010 – 38 Comments) - ConnectIn
(Saturday, Sep 25. 2010 – 62 Comments) - Proguard, Android, Ant, and 3rd party external JARs
(Wednesday, Sep 22. 2010 – 18 Comments)
Categories
- Android
- Cars
- ChinaBlog
- Code
- Computers
- Development
- Food
- Football
- Grommit
- Linkage
- Movies&TV
- Music
- Musings
- OpenSolaris
- OpenSource
- Outdoors
- Pets
- Photos
- Quotage
- Rdio
- Songbird
- Sun
- Travel
Grommit
Mozilla
OpenSolaris
- alan burlison
- bonnie corwin
- eric boutilier
- glynn foster
- jim grisanzio
- mark nelson
- mike kupfer
- planet opensolaris
- stephen hahn
Songbird
Archives
- November 2010
- September 2010
- August 2010
- June 2010
- May 2010
- February 2010
- January 2010
- December 2009
- October 2009
- September 2009
- August 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003
- August 2003
- July 2003
- June 2003
- May 2003
- April 2003
- March 2003
- February 2003
- January 2003
- December 2002
- November 2002
- October 2002
- September 2002
- August 2002
- July 2002
- June 2002
- May 2002
- April 2002
- March 2002
