More Streaming Woes....
Jon Buda <[email protected]> Sun, 18 Aug 2002 03:19:29 -0400
| Newsgroups | gmane.comp.apache.mod-mp3 |
|---|---|
| Message-ID | <[email protected]> |
hello all,
So I redid the playing part of my server and then asked some people in
IRC to check it out. It works fine for me with XMMS and Mozilla 1.0 in
Linux, but people using windows were having trouble. One person was
using IE6 and winamp and had the audio/mpegurl type associated with
winamp. When he went to play something IE prompted to save or open the
playlist. if he did open, winamp came up but the playlist was empty.
if he saved it to disk and then opened it, it worked fine. Also,
another person used IE and windows mediaplayer and said when he hit
play, windows media player said it couldnt find the file.
Anyone experienced any of these problems before? I havent been able to
test the IE/winamp combo yet because the site is locally on my linux
partition.
Heres an example of the code to play:
elseif($play == "playlist"){
header("Content-Type: audio/mpegurl;");
header("Content-Disposition: attachment; filename=playlist.m3u");
$query = "SELECT t2.signature,t2.length,t2.name,t2.artist FROM
server_playlist as t1, server_music as t2 WHERE t1.music_id=t2.id AND
user_id=$_SESSION[sess_userid] ORDER BY t1.id";
Connect();
$tmp = "#EXTM3U\n";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
$tmp .= "#EXTINF:$row[length],$row[name] - $row[artist]\n";
$tmp .=
"http://$GLOBALS[http_server]:8000/?op=play&song=$row[signature]\n";
}
echo $tmp;
exit;
}
Jon Buda
hopefully I have something up soon for everyone to take a look at
thanks all