Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanstowe/audio-playlist-jspf
JSON representation of a playlist
https://github.com/jonathanstowe/audio-playlist-jspf
json jspf playlist raku xspf
Last synced: about 1 month ago
JSON representation
JSON representation of a playlist
- Host: GitHub
- URL: https://github.com/jonathanstowe/audio-playlist-jspf
- Owner: jonathanstowe
- License: other
- Created: 2016-02-18T14:20:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-07T08:42:27.000Z (over 2 years ago)
- Last Synced: 2024-07-30T20:11:36.176Z (6 months ago)
- Topics: json, jspf, playlist, raku, xspf
- Language: Raku
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# Audio::Playlist::JSPF
JSON representation of a 'playlist'
![Build Status](https://github.com/jonathanstowe/Audio-Playlist-JSPF/workflows/CI/badge.svg)
## Synopsis
```raku
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](http://xspf.org/) which is
a format for sharing media playlists.Because this does the role L 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](LICENCE) file in the distribution
© Jonathan Stowe 2016 - 2021