Not PHP, but here's a solution I use for streaming WMA
files on apache server. 

You'll need 3 files
audiofile.htm
audiofile.wax
audiofile.wma

 
[audiofile.htm]
<html>
<head><title>Audio Player</title></head>
<body>

<script language="JavaScript">
<!--
if ( navigator.appName == "Netscape" )
{
navigator.plugins.refresh();
document.write("\x3C" + "applet MAYSCRIPT
Code=NPDS.npDSEvtObsProxy.class")
document.writeln(" width=5 height=5 name=appObs\x3E
\x3C/applet\x3E")
}
//-->
</script> <!-- Set ShowControls, ShowDisplay,
ShowStatusBar to value 0 to not display the
corresponding thing under the video window --> <OBJECT
ID="NSPlay" WIDTH=160 HEIGHT=128
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";
standby="Loading Microsoft Windows Media Player
components..." type="application/x-oleobject"> <PARAM
NAME="FileName"
VALUE="/interviews/applied/applied_interview_hi.wax">
<PARAM NAME="ShowControls" VALUE="1"> <PARAM
NAME="ShowDisplay" VALUE="1"> <PARAM
NAME="ShowStatusBar" VALUE="1"> <PARAM NAME="AutoSize"
VALUE="1"> <Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/";
filename="/audio/audiofile.wax"
src="/audio/audiofile.wax" Name=NSPlay ShowControls=1
ShowDisplay=1 ShowStatusBar=1 width=290 height=320>
</embed> </OBJECT>

</body>
</html>


[audiofile.wax]
<ASX version = "3.0">
<Entry>
        <Ref href = "/audio/audiofile.wma" />
</Entry>
</ASX>


And audiofile.wma is of course your windows media
audio file.

olinux


> At 12:55 PM 11/27/2002 -0800, Mako Shark wrote:
> >Does anyone know how to do streaming audio with
> PHP?
> >No clue if this is even possible. I've checked
> around
> >a bit, looked at some script sites, but nothing
> seems
> >to give a clue. I *think* it might be possible to
> set
> >something like this up, but I'm not sure.
> >
> >__________________________________________________
> >Do you Yahoo!?
> >Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> >http://mailplus.yahoo.com
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to