About earfl_web_player

This is a web-based audio player that uses xspf formatted mp3 playlists as input. It lives on web pages.

You can use our site's player on your site to play any regular xspf feed. However, our player also has a "wide" mode that shows additional information not available in most xspf players.

The "wide" mode of our player requires some extra data that was not included in the xspf spec. Any playlist from our site will automatically contain the additional required data for the "wide" mode of our player.

If you have a site that generates xspf playlists and you would like to use our player to reveal things from your site (like play_count or a user's mugshot_photo) then you'll need to add the following formatted information to your xspf in order for our player to be able to read it.

Here is an example xspf playlist from our site. Each track in the playlist contains an "extension" section that includes information like:

  <extension application="http://www.earfl.com/about/earfl_web_player">
    <recording_uri>http://www.earfl.com/recordings/13</recording_id>
    <play_count>13</play_count>
    <avg_rating>0.0</avg_rating>
    <user_uri>http://www.earfl.com/users/14</user_uri>
    <user_name>Ryn Jarvinsmenen</user_name>
    <user_mugshot>http://s3.amazonaws.com/dev-earfl-pictures/pictures/14/ryan-mii_head__thumb.png</user_mugshot>
  </extension>