serving files outside webroot via media player need help thx

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
homerjsimpson
Forum Newbie
Posts: 3
Joined: Sat Apr 21, 2007 9:12 am

serving files outside webroot via media player need help thx

Post by homerjsimpson »

here is the code but it does not work.

Code: Select all

<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Vers$
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
    <PARAM NAME="FileName" VALUE="some.mp3">
    <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/windowsmedia/download/AllDownloads.asp$
        filename="some.mp3"
        src="/home/me/dir/some.mp3"
        Name=MediaPlayer
        ShowControls=1
        ShowDisplay=1
        ShowStatusBar=1
        width=320
        height=240>
    </embed>
</OBJECT>
I think the player is searching for a dir named home within the mydomain.com which is not desired. also what if I supply a .m3u file with /home/me/dir/some.mp3 as the src? will that work?

how do i do this? thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Why is this in a seperate thread?

Topic Locked.
Locked