오늘은 소설입니다.
sun's longitude:240 03 55.55 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/delete.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
 ★ 글 지우기 항목입니다. 한번 더 생각하시고 결정하십시오.!!!
제목 94 번 글의 답장글 : Re: [PHP/MP3] url streaming
 이름  산이 [홈]http://linuxchannel.net/

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']."\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)
2003년 11월 09일 18:37:03 일(저녁)  from 61.254.75.40
0
암호: 공용 보안 SSL 서버가 준비되기 전까지는 off 합니다

apache lighttpd linuxchannel.net 
Copyright 1997-2024. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds