See into S60
» Subscribe
» Favorite Links
» What is S60?
» Freeware & Trials
» S60 devices
» Hints and tips

» About this blog
» Application development (14)
» Applications (22)
» Devices (5)
» Games (2)
» General (14)
» Imaging (1)
» Music (9)
» Video (13)
» Tommi's S60 Application Blog
» See into S60
» MRKTNGman
» S60 User Experience
» Creating Carbide.c++
» Voice of S60
» Mobile Multimedia Mashups
» The new guy
» Summer (vacation) is over, and some changes
» Internet Radio update
» MTP? MSC! Synch S60 phones with iTunes
» August 2006
» July 2006
» June 2006
» May 2006
» April 2006
» March 2006
» February 2006
» January 2006
Subscribe
Links
August 14, 2006 Mobile Multimedia Mashups Posted by Oren at 08:44 PM | Categories: Application development, Music

If you're a Last.fm user (or know someone who is), you may know about Audioscrobbler, the engine behind Last.fm. Audioscrobbler provides a plugin protocol so that music player applications can update the server with the music you play, and exposes a set of public web services that let you access data and recommendations about Last.fm members and their favorite music.

What I haven't seen (so far) is any mobile interfaces to the Audioscrobbler database. In an attempt to fill this gap (and encourage others to experiment), I wrote a couple of simple Python scripts for S60 devices that demonstrate some of the query features of the Audioscrobbler API (This also gave me a chance to learn Python!). Read on for the details.

Of course, Last.fm is not the only social music game in town. Other services, like MusicStrands, are already experimenting with mobile clients, and offer their own public API's.

python_related.jpg The first script is a modification of the File Browser that is included with the S60 Python SDK. When you navigate to an MP3 file, you have the option of looking up related artists from Audioscrobbler. Right now, the script just displays the results, but this can potentially be extended to browse for more music, or information about the related artists. I tested this script on a Nokia N91 with release 1.3.8 of Python for S60.
The second script shows how you might integrate social music with your Contacts. In this case, if you add your friend's Last.fm ID to his or her contact information, you can find out their favorite artists or tracks. I tested this script on a Nokia 6630, using release 1.3.1 of Python for S60. Note: This script will NOT WORK on S60 3rd Edition devices. Platform security blocks access to the Contacts from Python. top_artists.jpg

Thanks to Jürgen Scheible for his excellent Python tutorial, which made it much easier for me to get started. These scripts use Jürgen's application skeleton. The first one also uses code from here to extract MP3 metadata (thanks to Erik Smartt for the link!)

Feel free to play with these scripts as you wish, and let me know if you create something interesting!

-Oren


Permalink | TrackBack URL for this entry:  http://blogs.s60.com/mt/mt-tb.cgi/531

Comments

What would be very cool is to have the Music Player update Last.fm as you play tracks on your phone. Though you'd have to watch out for data charges.

Posted by: SeaWolf | August 16, 2006 05:15 AM

I agree, SeaWolf. Should be possible to write an Audioscrobbler plugin if you can get access to the "now playing" information. I'll check it out with our player team.

Posted by: Oren | August 16, 2006 01:43 PM


Post a comment


Please enter the security code you see here







«Back to previous page