Menu

#1 Playlist support

open
None
5
2005-06-06
2005-06-06
No

Here's a little piece of code I got by mail a few days
ago from tony -at- lysergik dot com. It adds support
for playing playlists instead on files in a directory :

--[CODE]--
$fp = fopen($stream['playlist'], "r");
if($fp) {
while(!feof($fp)) {
$line = fgets($fp);
$playlist[] = trim($line);
}
fclose($fp);
} else {
die("Cannot open playlist !");
}

--[CODE]--

In the configuration section :
$stream['playlist'] = "playlist.m3u";

It should work, i haven't tested yet. Thanks tony for
your submission !

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.