Introduction
A Zune playlist is the playlist file of Microsoft’s Zune player. A Microsoft developer’s blog
says Zunes “don’t play WPL playlist files; they play ZPL playlist files” and that ZPL files are
“exactly like WPL files … The only difference is the file extension” (Matt Gertz, Visual Basic
team blog). Another Microsoft blog, by Andy Pennell (23 August 2008), is more careful: Zune
playlists “are different from Windows Media Player playlists”, the two “appear to be identical
save for the header and the file extension”, and Windows Media Player loads a ZPL file after
its first line is changed from zpl version="2.0" to wpl version="1.0".
He adds: “I can't find any definitions for ZPL files.” This site found none either.
So the format is the Windows Media Player playlist format with a different processing instruction, and the pages here describe only what differs, from the one real file read and from VLC.
The Zoom Player media player also names its playlists .zpl; its page describes them as
plain text with “text tags, each on its own line”, which is a different format. The explorer opens a
.zpl file as a Zune playlist only when it has the <?zpl?> line and a
smil root.
Structure
The real file is a Zune playlist posted on the MediaMonkey forum (20 items; the Zune software’s
generator string is Zune -- 4.2.202.0). It is XML with the same elements as a WPL
playlist: a smil root, a head with title and
meta elements, and a body holding a seq of
media elements whose src is the file’s path. What differs:
- The first line is
<?zpl version="2.0"?>where a WPL file has<?wpl version="1.0"?>. - The
headholds two more elements,feedUrl(in the file:/music/channel/4ecfc848-6e25-4da9-a87e-eead5bf749fa/current) andguid({4ECFC848-6E25-4DA9-A87E-EEAD5BF749FA}, the same GUID as the feed address). Microsoft’sheadpage lists onlytitleandmetaas children. - The
metanames are written in camel case,creatorId(an all-zero GUID),averageRating(0),totalDuration(4400),itemCount(20) andgenerator, where Microsoft’s examples writeTotalDuration,ItemCountand so on. - Each
mediaelement carriesserviceId(a GUID in braces),albumTitle,albumArtist,trackTitle,trackArtistanddurationas well assrc.
The units follow from the numbers: the 20 duration values add up to 4,400,469 and
totalDuration is 4400, so a duration is in milliseconds and
totalDuration in seconds, cut to a whole number. No source states the units; the
WPL file structure page says the same of the Windows
Media Player files.
VLC’s playlist reader (wpl.c) takes a .zpl file with the same code as a
.wpl one and reads only each media element’s src.
Opening a Zune playlist here
Drop a .zpl file on this site’s explorer to see its XML as a tree, the playlist
(source, the Zune attributes, titles and duration of every item), the head’s meta elements, the
colour-coded text and a list of every rule the file breaks, each with its line. It is read by the
same code as a WPL file, which expects <?zpl version="2.0"?>: a
<?wpl?> line, no instruction or another version is a problem. Nothing is
uploaded. The sources and titles are checked against xmllint.
Not described
Unknown
- Reference: what
feedUrl,guid,creatorId,averageRatingandserviceIdmean and which values they may take. Only one real file was read and no document describes them; the pages give the values seen and nothing more. - Reference: whether a Zune playlist can hold anything a WPL file can hold, such as a smart playlist, and whether other versions than 2.0 exist. Only version 2.0 was seen.
Specs not available
- Reference: a Microsoft specification of the Zune playlist: none was found. The blog quoted above says none could be found in 2008.
Links
Software
- Zune – Microsoft’s player software and music service whose devices play ZPL files
Developers
- VLC wpl.c – VLC’s reader for WPL and ZPL playlists (C)
Reference
- Converting Zune playlists into Windows Media Player playlists – Andy Pennell’s blog post on the one difference in the first line
- Building a Zune Playlist – Matt Gertz’s post, which says ZPL files are like WPL files
- MediaMonkey forum thread – a post that quotes a whole Zune playlist, the one real file read here
- Windows Media Player playlist (WPL) – the format a ZPL file is built on
- Zoom Player playlist format – the other format that uses the .zpl extension