« The Joy of 10:47 AM | Main | Spring is finally here! »
April 06, 2005
The "Now Playing" mistery
For several weeks I wanted to implement a section into my blog of what tracks are being played on the server's iTunes. It was not an easy task due to the lack of a plugin that can run on a OS X environment. On the PC side though, you can find a great plugin that can do all this written by Brandon Fuller.
Brace yourself...
What you need:
- OS X (10.3.8) I haven't test it with other versions os OS X
- iTunes 4.71
- Tracks WITH artwork, if you don't have the artwork of your tracks, a blank image will be displayed.
- The now defunct Kung-Tunes v2.2
- Holocore's OnDeck v.1.7
Putting the pieces together:
Launch Kung-Tunes, this will launch iTunes automatically:
- Prefences Menu/Upload window --> Set Kung-Tunes to save the extracted information locally into a whatevername.html file inside your webserver's documents folder.
- Preferences Menu/runtime:
- Timer: 0
- Check "Auto-start timer" and "Produce info file..."
- The number of extracted tracks is up to you, in my case I have just one.
- Check also the option to "Upload inactivity message..."
- Format Menu --> Prior to modify the default values of this section, I strongly suggest to build the page from "html" until "/html" that is going to display the art and track information, is more simple to visualize it in this way. A simple 4-row 1-column table will do the trick.
Row 1 --> **Insert here a "img src="album.jpg" width="130" height="130" border="1""
Row 2 --> Current Track Tag
Row 3 --> Blank (optional)
Row 4 --> Last Played Tag
**The artwork is going to be provided by Holocore's OnDeck.
Also, don't forget to include this tag:
"meta http-equiv="refresh" content="60""
This will refresh the content of the page every 60 seconds.
- Once you have built your page, insert the Kung-tunes tags into the proper cells of your table. Keep a close look on the usage of these, they can be a little bit confussing.
- When you're done, chop you html page and paste it into the proper sections of Kung-Tunes' Format windows, the header and footer sections are very straight forward. My Header ends with the "body" tag and my footer section starts with the "/body" tag, you know what's above and below them. The Playing, Recent and Inactivity window is filled with my now chopped table.
-Save your template and test it by pointing your browser to the page you told Kung-Tunes to save the extracted information. You should see the current track information if iTunes is running or the "inactivity message" if iTunes is paused.
Artwork, launch OnDeck and check the following
Preferences/Artwork
- Check "Look for embedded artwork"
Preferences/Information
- You don't need to modify anything here.
Preferences/Servers
- Scale to "130" (remember the tag on Kung-Tunes)
- Method --> Local
- Server Path -> to your webserver's documents folder ending with "album.jpg" (same location where kung-tunes is saving the .html file)
- The rest of the fields leave them as-is
Preferences/Behavior
- Idle sleep for 60
Function Menu
- Check just "Upload Artwork"
That's it, play a song in iTunes (preferable with artwork) and give some seconds to OnDeck to pull the image and to Kung-Tunes to generate the html. Point your browser again into the html file that Kung-Tunes generated and you should see this time the artwork being displayed along with the track information. Simple no?
This simple page can now be placed into Movable Type with a simple "iframe" tag.
As a note. OnDeck has the ability of display the track information but on my tests, OnDeck will sometimes crash when generating a html-based document.
More Extras:
If you want to have full remote control of what is being played, you can control iTunes through your browser by using DeadEnd Software's "WebRemote".
If you want also to stream what is being played, you can use Rogue Amoeba's NiceCast.
All the above software works in conjunction very well and gives you full access and control of your iTunes library...inside Movable Type.
Posted by jachong at April 6, 2005 04:20 PM
Trackback Pings
TrackBack URL for this entry:
http://www.4000essex.com/cgi-bin/mt/mt-tb.cgi/9