XML Sharable Playlist

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
 
Line 39: Line 39:
  
 
In this example there are three songs in the playlist. The first one is on the local computer. The second one is on the [[HTTP]] server. And the final one is on the [[FTP]] server. It should be noted that local files are still to be recorded via the URI, not simply as a path.
 
In this example there are three songs in the playlist. The first one is on the local computer. The second one is on the [[HTTP]] server. And the final one is on the [[FTP]] server. It should be noted that local files are still to be recorded via the URI, not simply as a path.
 +
 +
== JSPF ==
 +
 +
JSPF is a variant of XSPF that is encoded in [[JSON]] rather than [[XML]].
  
 
==Reference==
 
==Reference==
 
* http://xspf.org/
 
* http://xspf.org/
 +
* [https://www.xspf.org/jspf/ JSPF]
  
 
[[Category:XML based file formats]]
 
[[Category:XML based file formats]]

Latest revision as of 06:31, 22 August 2021

File Format
Name XML Sharable Playlist
Ontology
Extension(s) .xspf
Released v1.1 2006-11, v1 2005-03, v0 2004-05

XML Sharable Playlist (XSPF) (pronounced "spiff", but not to be confused with SPIFF) is an open playlist format based on XML.

It provides no information about the metadata within or about the file present in the playlist. This is a deliberate decision not to compete with the already existing formats, and because metadata answers a completely different question than a playlist format. Metadata may, however, be linked from the playlist and will be loaded in accordance with the format of those files.

Contents

[edit] Specification

See http://xspf.org/xspf-v1.html

[edit] Example

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
  <trackList>
    <track><location>file:///song_1.ogg</location></track>
    <track><location>http://www.example.com/music/song_2.spx</location></track>
    <track><location>ftp://ftp.example.org/public/song_3.mp2</location></track>
  </trackList>
</playlist>

In this example there are three songs in the playlist. The first one is on the local computer. The second one is on the HTTP server. And the final one is on the FTP server. It should be noted that local files are still to be recorded via the URI, not simply as a path.

[edit] JSPF

JSPF is a variant of XSPF that is encoded in JSON rather than XML.

[edit] Reference

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox