|$result = $mp3->process_playlist||Process buttons that affect the playlist.|
|$hashref = $mp3->lookup_descriptions(@uris)||Look up the description fields for the MP3 files indicated by the list of URIs (not paths) and return a hashref.|
|@list = $mp3->playlist([@list])||Get or set the current stored playlist. In a list context returns the list of URIs of stored MP3 files. In a scalar context returns an array reference. Pass a list of URIs to set the playlist.|
The following new linking conventions apply:
Add MP3 files to the users playlist Append /playlist.m3u?Add+to+Playlist;file=file1;file=file2... to the name of the directory that contains the files:
<a href="/Songs/Madonna/playlist.m3u?Add+to+Playlist=1;file=like_a_virgin.mp3;file=evita.mp3"> Two favorites</a>
Add all MP3 files in a directory to the users playlist: Append /playlist.m3u?Add+All+to+Playlist to the name of the directory that contains the files:
<a href="/Songs/Madonna/playlist.m3u?Add+All+to+Playlist=1"> Madonnaa a Momma</a>
Delete some MP3 files from the users playlist: Append /playlist.m3u?Clear+Selected=1;playlist=1;file=file1;file=file2... to the name of the current directory.
NOTE: the file names must be absolute URLs, not relative URLs. This is because the playlist spans directories. By the same token, the current directory does not have to contain the removed song(s). Example:
<a href="/Songs/Springsteen/playlist.m3u?Clear+Selected=1; playlist=1;file=/Songs/Madonna/like_a_virgin.mp3"> No longer a virgin, alas</a>
Clear users playlist: Append /playlist.m3u?Clear+All=1;playlist=1 to the name of the current directory.
<a href="/Songs/Springsteen/playlist.m3u?Clear+All=1;playlist=1"> A virgin playlist</a>
Stream the playlist Append /playlist.m3u?Play+All=1;playlist=1 to the name of the current directory.
<a href="/Songs/Madonna/playlist.m3u?Play+All=1;playlist=1"> Stream me!</a>
Stream the playlist in random order As above, but use Shuffle+All rather than Play+All. Stream part of the playlist Append /playlist.m3u?Play+Selected=1;playlist=1;file=file1;file=file2... to the name of the current directory.
NOTE: the files must be full URLs. It is not strictly necessary for them to be on the current playlist, so this allows you to stream playlists of arbitrary sets of MP3 files.
<a href="/Songs/playlist.m3u?Play+Selected=1; playlist=1;file=/Songs/Madonna/like_a_virgin.mp3; file=/Songs/Madonna/working_girl.mp3; file=/Songs/Beatles/let_it_be.mp3"> Madonna and John, together again for the first time</a>
This module uses client-side cookies to mantain the playlist. This limits the number of songs that can be placed in the playlist to about 50 songs.
Chris Nandor came up with the idea for the persistent playlist and implemented it using server-side DBM files. I reimplemented it using client-side cookies, which simplifies maintenance and security, but limits playlists in size.
Copyright 2000, Lincoln Stein <email@example.com>.
This module is distributed under the same terms as Perl itself. Feel free to use, modify and redistribute it as long as you retain the correct attribution.
Apache::MP3::Sorted, Apache::MP3, MP3::Info, Apache
Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 266: You forgot a =back before =head1 Around line 270: =item outside of any =over
|perl v5.20.3||MP3::PLAYLIST (3)||2006-01-03|