JSPF Draft

From XiphWiki
Revision as of 19:52, 14 June 2007 by Sping (talk | contribs) (extensions)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is the JSPF specification workspace.

Example JSPF file:

{
  "playlist" : {
    "title"         : "JSPF example",
    "creator"       : "Artist name",
    "annotation"    : "Super playlist",
    "info"          : "http://example.com/",
    "location"      : "http://example.com/",
    "identifier"    : "http://example.com/",
    "image"         : "http://example.com/",
    "date"          : "2005-01-08T17:10:47-05:00",
    "license"       : "http://example.com/",
    "attribution"   : [
      {"identifier"   : "http://example.com/"},
      {"location"     : "http://example.com/"}
    ],
    "link"          : [
      {"http://example.com/rel/1/" : "http://example.com/body/1/"},
      {"http://example.com/rel/2/" : "http://example.com/body/2/"}
    ],
    "meta"          : [
      {"http://example.com/rel/1/" : "my meta 14"},
      {"http://example.com/rel/2/" : "345"}
    ],
    "extension"     : [
      { "http://example.com/app/1/" : ARBITRARY_EXTENSION_BODY },
      { "http://example.com/app/2/" : ARBITRARY_EXTENSION_BODY }
    ]
    "track"         : [
      {
        "location"      : [
          {"location"     : "http://example.com/1/"},
          {"location"     : "http://example.com/2/"}
        ],
        "identifier"    : [
          {"identifier"   : "http://example.com/1/"},
          {"identifier"   : "http://example.com/2/"}
        ],
        "title"         : "Track title",
        "creator"       : "Artist name",
        "annotation"    : "Some text",
        "info"          : "http://example.com/",
        "image"         : "http://example.com/",
        "album"         : "Album name",
        "trackNum"      : 1,
        "duration"      : 0,
        "link"          : [
          {"http://example.com/rel/1/" : "http://example.com/body/1/"},
          {"http://example.com/rel/2/" : "http://example.com/body/2/"}
        ],
        "meta"          : [
          {"http://example.com/rel/1/" : "my meta 14"},
          {"http://example.com/rel/2/" : "345"}
        ],
        "extension"     : [
          { "http://example.com/app/1/" : ARBITRARY_EXTENSION_BODY },
          { "http://example.com/app/2/" : ARBITRARY_EXTENSION_BODY }
        ]
      }
    ]
  }
}