README

Audio::Playlist::JSPF

JSON representation of a 'playlist'

image i_github_com_jonathanstowe_audio_playlist_jspf_workflows_ci_badge_svg not found

Synopsis


use Audio::Playlist::JSPF;

my $playlist = Audio::Playlist::JSPF.from-json($some-json);

say "Playing from { $playlist.title }";

for $playlist.track -> $track {
    if $track.location.elems {
       say "Playing track { $track.title } by { $track.creator }";
       # TYpically if there is more than one location we might
       # choose the most suitable one.
       my $track-uri = $track.location.first;
       # Do something with the track
    }
}

Description

This is a JSON representation of XSPF which is a format for sharing media playlists.

Because this does the role LJSON::Class the objects can be created directly from and serialised to JSON via the C and C methods that role provides.

Currently there doesn't seem to be much software using this format for playlists but JSON is convenient for a variety of reasons.

Installation

Assuming you have a working Rakudo installation you should be able to install this with zef :

# From the source directory

zef install .

# Remote installation

zef install Audio::Playlist::JSPF

Support

If you have any problems or suggestions with this module please report them at:

https://github.com/jonathanstowe/Audio-Playlist-JSPF/issues

And I'll see what I can do.

Licence

This is free software.

Please see the LICENCE file in the distribution

Ā© Jonathan Stowe 2016 - 2021

Audio::Playlist::JSPF v0.0.5

JSON representation of a 'playlist'

Authors

  • Jonathan Stowe

License

Artistic-2.0

Dependencies

JSON::ClassJSON::Name

Test Dependencies

Provides

  • Audio::Playlist::JSPF

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.