X-Mozilla-Status: 0001
X-Mozilla-Status2:00000000
Message-ID: <3FAE0871.4347AA6@linuxchannel.net>
Date: Sun, 09 Nov 2003 18:27:13 +0900
From: 김칠봉 <san2@linuxchannel.net>
X-Accept-Language: en
MIME-Version: 1.0
To: "h3ll [deathmetal.at]" <hellhammer@chello.at>
Subject: Re: play.php
References: <000a01c3a526$bdf5d1d0$cd7e6e50@h3llserver>
Content-Type: text/plain; charset=EUC-KR
Content-Transfer-Encoding: 7bit
hi
my english is very poor .........T.T
...
good idea !!!
but,
[the 2 way of streaming mp3 files]
0. make URL(include localhost) playlists
1. shut of local HDD mp3 files
2. get of mp3 a URL file and shut
the 'play.php' is 0'th way and 1'th way and re-bitrate encoding
your choice : 0'th way or 0'th way + 2'th way
if your choice is 0'th way then, is simply.
just make a 'mp3-playlist'
example)
<?php
## this file name is a play.php
## make URL playlist
## require of url file exists
##
$pathinfo = pathinfo($_SERVER['QUERY_STRING']);
header('Content-Disposition: inline; filename=playlist_foo.m3u');
header('Content-Type: audio/x-mpegurl');
echo '#EXTINF:0,'.$pathinfo['basename']."\r\n";
echo $_SERVER['QUERY_STRING']."\r\n";
exit;
?>
if your choice is 0'th way + 2'th way, is some complex.
1 PHP coding(play.php)
<?php
## this file name is a play.php
## make URL playlist
## require of url file exists
##
$pathinfo = pathinfo($_SERVER['QUERY_STRING']);
header('Content-Disposition: inline; filename=playlist_foo.m3u');
header('Content-Type: audio/x-mpegurl');
echo '#EXTINF:0,'.$pathinfo['basename']."\r\n";
echo 'http://yourhost.com/path/stream.php?'.$_SERVER['QUERY_STRING'].&
quot;\r\n";
exit;
?>
and then.
2. PHP coding (stream.php)
<?php
## this file name is a stream.php
## get URL file and shut
## require of url file exists
##
$pathinfo = pathinfo($_SERVER['QUERY_STRING']);
header('Content-Type: audio/mp3');
header('Content-Disposition: filename='.$pathinfo['basename']);
header('Content-Transfer-Encoding: binary');
$fp = fopen($_SERVER['QUERY_STRING'],'r');
fpassthru($fp);
exit;
?>
thanks !!!
"h3ll [deathmetal.at]" wrote:
> hey from austria i found your mp3 streamer, i like the way it works
> but i cant use it :( are u able to create a play.php that work like i
> need it ?should be a easy one for someone who's able to create a tool
> like yourmp3 streamer. i simply need a play.php that plays an url in
> winamp !! like:
> http://www.domain.com/play.php?http://www.anotherdomain.com/test.mp3
so
> that winamp starts up with a stream of test.mp3 i tried several things
> butit always started a download in ie should work for winamp and the
> microsoft mplayer2 greets and thnx in advance if you can help me on
> that markus (h3ll@deathmetal.at)
|