JSPF Draft: Difference between revisions

From XiphWiki
Jump to navigation Jump to search
(added an example of the extension element)
(replace Stanbeard misunderstanding with explanatory text to prevent misunderstandings.)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This is the JSPF specification workspace.
This is the JSPF specification workspace.  JSPF is JSON XSPF.


Example JSPF file:
Example JSPF file:
Line 18: Line 18:
     ],
     ],
     "link"          : [
     "link"          : [
       TODO
       {"http://example.com/rel/1/" : "http://example.com/body/1/"},
      {"http://example.com/rel/2/" : "http://example.com/body/2/"}
     ],
     ],
     "meta"          : [
     "meta"          : [
       TODO
       {"http://example.com/rel/1/" : "my meta 14"},
    ],
      {"http://example.com/rel/2/" : "345"}
    "extension"     : [
      TODO
     ],
     ],
    "extension"    : {
      "http://example.com/app/1/" : [ARBITRARY_EXTENSION_BODY, ARBITRARY_EXTENSION_BODY],
      "http://example.com/app/2/" : [ARBITRARY_EXTENSION_BODY]
    },
     "track"        : [
     "track"        : [
       {
       {
         "location"      : [
         "location"      : ["http://example.com/1.ogg", "http://example.com/2.mp3"],
          TODO
         "identifier"    : ["http://example.com/1/", "http://example.com/2/"],
        ],
         "identifier"    : [
          TODO
        ],
         "title"        : "Track title",
         "title"        : "Track title",
         "creator"      : "Artist name",
         "creator"      : "Artist name",
Line 43: Line 42:
         "duration"      : 0,
         "duration"      : 0,
         "link"          : [
         "link"          : [
           TODO
           {"http://example.com/rel/1/" : "http://example.com/body/1/"},
          {"http://example.com/rel/2/" : "http://example.com/body/2/"}
         ],
         ],
         "meta"          : [
         "meta"          : [
           TODO
           {"http://example.com/rel/1/" : "my meta 14"},
          {"http://example.com/rel/2/" : "345"}
         ],
         ],
         "extension"    : {
         "extension"    : {
           "http://example.application.com":[
           "http://example.com/app/1/" : [ARBITRARY_EXTENSION_BODY, ARBITRARY_EXTENSION_BODY],
            {"multiple":"instances of"},
           "http://example.com/app/2/" : [ARBITRARY_EXTENSION_BODY]
            {"an application's":"extension can coexist"}
          ],
           "http://another.application.com":[{"each instance":"consists of arbitrary json"}]
         }
         }
       }
       }
Line 59: Line 57:
   }
   }
  }
  }
[[Category:XSPF]]

Latest revision as of 12:33, 25 November 2008

This is the JSPF specification workspace. JSPF is JSON XSPF.

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, ARBITRARY_EXTENSION_BODY],
      "http://example.com/app/2/" : [ARBITRARY_EXTENSION_BODY]
    },
    "track"         : [
      {
        "location"      : ["http://example.com/1.ogg", "http://example.com/2.mp3"],
        "identifier"    : ["http://example.com/1/", "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, ARBITRARY_EXTENSION_BODY],
          "http://example.com/app/2/" : [ARBITRARY_EXTENSION_BODY]
        }
      }
    ]
  }
}