02
Jan 09

New Music Site for Original Compositions

Screenshot of my new music site

Screenshot of http://polymath.mit.edu/music/player

A few weeks ago I set out to design a new website to showcase some of the music I’ve composed and had performed over the last two years. As with any website, I wanted to make sure it would be easily update-able. So I decided to use the very popular JW (Jeroen Wijering) Flash Media Player in order to take advantage of its ability to play XSPF (XML (Extensible Markup Language) Shareable Playlist Format) playlists. (Don’t you just love it when acronyms get compounded!) I’ve used the JW Flash player before for the Vi / deo site I made last summer. However, since a new version of the player had just been released, rather than use a similar implementation to the one over at Vi / deo, I decided instead to start from scratch, in order to take advantage of three key new features in the player.

JW Flash Player New Features

1. Support for Skinning

I designed my own skin, based on the Modieus (or “Stylish”) skin from Jeroen. The main improvements I made to the skin were customizing the look of the playlist items, so that each would not take up much vertical space. This makes the skin more suitable for music playlists. (It was originally intended more for video playlists.) The skin I made is available at Jeroen’s site here. You can also grab it here, just be aware of the license information found at Jeroen’s new site, Longtail Video.

2. New and Improved Javascript Interaction

The way I used this will be apparent in the site itself. The main feature I use is the ability to change the page’s content (the stuff displayed on the right-hand side) based on the current song being played by the player.

I do this by adding an event listener to the player’s ITEM event.

<script type="text/javascript">
var player;
function playerReady(obj) {
	player = document.getElementById(obj['id']);
	player.addControllerListener('ITEM','onPlaylistItemChange');
};
function onPlaylistItemChange(event) {
	//handle event
}
</script>

3. Plugins

There’s a really cool audio visualization plugin called Revolt. You just have to see it. It’s awesome.

The new music player site can be found at http://polymath.mit.edu/music/player/.

The xspf playlist which drives the site is here.
The Modieus_Slim skin that I made can be found here. (zip folder containing .fla, .swf, and other supporting files)


Tags: , , , , , ,


8 Responses to “New Music Site for Original Compositions”

  1. adam Says:

    Hey guys, I’d love some feedback!

  2. mp3 house Says:

    sounds interesting
    thanks for posting

  3. waine Says:

    This looks great!
    Im sure this can be developed even further.
    Would love to see overlays over the visual, e.g. Song title, author etc.

    Then im sure this would be a great skin for music playback!

  4. adam Says:

    Thanks waine. I will look into meta-data overlays.

  5. Hanns Says:

    I agree! A skin customised for music playback has great potential! Especially with JW Player. I think Waine’s idea is sound. Like other music players have titles, authors, albums etc being overlayed from the XSPF playlist, simple enough – no need to read meta-data.

    Anyway great JS interaction you have going on there. Has potential.

  6. Vector Says:

    Nice, thanks for the skin. I would suggest making the top bigger to allow album art or something.

  7. adam Says:

    @Vector
    The height of the visualizer area and the playlist area can be customized with javascript.

    When instantiating the player with SWFObject, choose the height of the entire flash object.

    var so = new SWFObject('player.swf', 'id',
    			playerWidth  + 'px', playerHeight + 'px', '9');

    Then with the addVariable method you can choose the location and height of the playlist.

    so.addVariable('playlist', 'bottom');
    so.addVariable('playlistsize', playlistHeight + 'px');

    The difference between playerHeight and playlistHeight will be the height of the visualizer portion, which could, as you mentioned, be used for displaying album art.

  8. Ploddy Says:

    I agree, after searching around for a skin/player which is supports a header like display.. Iv ended up here.

    The player is nice however would look better if it had a header and perhaps a album art (*like last.fm*)



Leave a Reply