Re: Can Netjuke create MP3s on the fly?
Randy Perkins <[email protected]>
| Newsgroups | gmane.comp.audio.netjuke.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2003-03-21 at 09:11, Matthias Mikuletz wrote: > Will Meyer <[email protected]> schrieb am 21.03.03 14:45:45: > > > or most purposes and just get it to stream out MP3s for listening > > over lower-bandwith WAN connections? Is the code set up to be able to write a plugin for such without too > much trouble? > diff netjuke/play.php netjuke/play.php.orig : > > 88,101c88,91 > ps Just drop me an e-mail if you've got some question on the above. hello i have tried to get this going here are the changes i made in play.php starting at line 88 this is my first experience with php i have mangled perl scripts before, but this is new territory for me. i have checked the email variable for accuracy and the tr_location and the WEB_PATH using the echo command the script bombs out but i can see the value of the variable in the browser, due to my inserted echo command by moving the echo command around i have verified that i am properly executing the if loops but no matter what, the playmp3.php is not called. i have verified this because i have renamed the file and i dont bomb out. i also put an echo command in the top of it but it is never echoed and the song plays at full bandwidth when i click on the musical notes in the browser any help would be appreciated i am using the 1.0b17 version of the software. thanks randy # changes here to get low bandwidth streaming #if (!strstr($tr_location,"://")) $tr_location = WEB_PATH."/".$tr_location; #$tr_location = separatorCleanup($tr_location); if (($NETJUKE_SESSION_VARS["email"] == "[email protected]") && (strstr($tr_location,".mp3"))) { if (!strstr($tr_location,"://")) $tr_location = WEB_PATH."/playmp3.php?mp3file=".$tr_location; $tr_location = separatorCleanup($tr_location); } else { if (!strstr($tr_location,"://")) $tr_location = WEB_PATH."/".$tr_location; $tr_location = separatorCleanup($tr_location); } -- Randy Perkins <[email protected]>