XSPF

From BC$ MobileTV Wiki
Jump to: navigation, search
eXtensible markup language Shareable Playlist Format (XSPF) logo

XML Sharable Playlist Format (commonly abbreviated XSPF; pronounce "SPIFF") is an XML-based playlist format which is primarily deisned to handle the creation and management of a playlist of music. It can also support images and even video by tweaking some of the parameters or following poor Semantic Markup and placing Video Details within Musical Album entries.[1]


Project Origin

The project started in 2005 as an initiative to foster development of open source tools for audio playback. As of 2006, the major bugs were worked out leading to parsers and laguage-specific applications (written in PHP, Java, Ruby, Python, Flash, ActionScript and even JSON & JavaScript) began to be released as XSPF was rapidly emerging as one of the most widely supported playlist format. [2].

The most successful application was arguably the acclaimed open source, Flash-based, embeddable MP3Player for websites.[3]


Since that first music-based player, several other players have come along to extend the capabilities of XSPF music and image playlists into full-fledged media players of all media types including video. Most of these even support mixed media playlists for display of images, music and videos, such as: JW Media Player.


Core Values

XSPF is intended to be the leading XML format for creating, sharing and managing playlists that are:

free and open -- No proprietary lock-in. 
portable -- You should be able to send a playlist to your friend and have it work.  
well-engineered -- Most playlist formats get the easy things wrong. 


EXAMPLES

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
	<creator>Arctic Monkeys</creator>
	<title>Whatever People Say I Am, That's What I'm Not</title>
	<trackList>
		<track>
			<trackNum>1</trackNum>
			<creator>Arctic Monkeys</creator>
			<title>A Certain Romance</title>
			<image>http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/Whatever People Say I Am, That's What I'm Not.png</image>
			<location>http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/A Certain Romance.mp3</location>
			<info>Whatever People Say I Am, That's What I'm Not (2006)</info>
			<duration>331677</duration>
		</track>
		<track>
			<trackNum>2</trackNum>
			<creator>Arctic Monkeys</creator>
			<title>Dancing Shoes</title>
			<image>http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/Whatever People Say I Am, That's What I'm Not.png</image>
			<location>http://localhost/xspf_player/songs/Arctic Monkeys/Whatever People Say I Am, That's What I'm Not/Dancing Shoes.mp3</location>
			<info>Whatever People Say I Am, That's What I'm Not (2006)</info>
			<duration>141584</duration>
		</track>
                ...
	</trackList>
</playlist>





Tools

Validator

Players


Resources


Tutorials

[10] [11]


External Links


References

  1. XSPF Open-Source Collaboration portal: https://web.archive.org/web/20110209120916/http://xspf.org/
  2. http://blogs.magnatune.com/buckman/2007/02/xspf_playlist_s.html XSPF playlist standard now widely supported]
  3. XSPF Web Music Player: http://musicplayer.sourceforge.net/
  4. Playlistar was the last (as far as I know) of the original XSPF-based playlist creation/sharing services like FoafingTheMusic, WebJay, MyStrands, Songza, MyPlaylist, Skreemr, Jamendo, etc... some of its functionality is also no longer available, but the site itself remains up
  5. Enhanced XSPF Music Player With Autoresume Support: http://www.boutell.com/xspf/
  6. Enahanced XSPF Music Player docs: https://www.boutell.com/xspf/xspf/xspfdoc.html#examples
  7. jPlayer - Playlister example: http://jplaylister.yaheard.us/v_0.70/fs_mobile.php?name=../../&sortby=random
  8. xspf/php (DEMO): https://web.archive.org/web/20091126011543/http://www.trbailey.net/xspf/sample.html
  9. XSPF playlist standard now widely supported: https://blog.magnatune.com/2007/02/xspf_playlist_s.html
  10. MP3 Player with XML Playlist: https://sites.google.com/site/code4designers/xml-playlist
  11. Embedding Music With Flash And XSPF Web Music Player: https://sites.google.com/site/code4designers/xspf
  12. XSPF WEB MUSIC PLAYER "enhanced" with Shuffle capabilities: https://web.archive.org/web/20060613184427/http://geekkid.net/jukebox/xspfdoc.html | SRC | DEMO
  13. XSPF WEB MUSIC PLAYER "enhanced" with Autoresume capabilities: https://web.archive.org/web/20120215132833/http://www.boutell.com/xspf/ (player position tracked via Flash Cookie as user navigates away and comes back)

See Also

Audio | Music | MP3 | Playlist | XML | JSON | Podcast | mRSS