DEV Community

No Name Pro
No Name Pro

Posted on

How to create a Playlist as File

Hello πŸ‘‹

you want to create a playlist for a party to a file which runs on every PC?

The best way is a XSPF-File.
It's simply just a XML File. JSON?

I know it, it's nothing for development. But i think this article can for many people be helpfull

Create a file

First create a File named playlist.xspf with this content.

<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="">

Add some Metatags

If you want to add some metatags to the playlist, open the file and add in the <playlist>-Element:

<!-- title of the playlist -->
<title>My best tracks for the party</title>

<!-- name of the author -->
<creator>No Name Pro</creator>

<!-- website of the author -->

And add Meta-Tags (like Custom-Name) for the Tracks in the <track>-Element:

<!-- artist or band name -->
<creator>Led Zeppelin</creator>

<!-- album title -->
<album>Houses of the Holy</album>

<!-- name of the song -->
<title>No Quarter</title>

<!-- comment on the song -->
<annotation>I love this song</annotation>

<!-- song length, in milliseconds -->

<!-- album art -->

<!-- if this is a deep link, URL of the original web page -->

Check if playable

You can open this File with VLC to check if the File is readable and playable for the XSPF Format.

You can use another app, which is listed here:

If you want a JSON (JSPF)

Check out:

If you have questions

Then write a comment or check the offical informations from XSPF out:

Another examples

Are here: :)

Top comments (0)