jeffmace
asked on
Streaming Mp3 File located outside the root directory?
I am trying to stream mp3 file using the Wimpy Mp3 Player.
http://www.wimpyplayer.com/
When using the code below, the music will stream just fine because its still inside the webroot folder.
<object classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,47,0"
width="40" height="40" id="wimpy_button_#ID#" name="wimpy_button_#ID#">
<param name=movie value="wimpy_button.swf?th eFile=../m p3/#mp3#">
<param name=quality value=high>
<param name=wmode value=transparent>
<embed src="wimpy_button.swf?theF ile=../mp3 /#mp3#" quality=high width="40" height="40" name="wimpy_button_#ID#"
type="application/x-shockw ave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
But if I go outside the root directory the files will not play, so if i use the following code for example:
<param name=movie value="wimpy_button.swf?th eFile=../. ./mp3/#mp3 #">
This is an existing folder, but it will not locate the file.
Now I realize this may be a weakness of the programming, but I am not getting any help from the developer. Is it possible to play an mp3 when its not located somewhere withing the web folder?
http://www.wimpyplayer.com/
When using the code below, the music will stream just fine because its still inside the webroot folder.
<object classid="clsid:D27CDB6E-AE
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=6,0,47,0"
width="40" height="40" id="wimpy_button_#ID#" name="wimpy_button_#ID#">
<param name=movie value="wimpy_button.swf?th
<param name=quality value=high>
<param name=wmode value=transparent>
<embed src="wimpy_button.swf?theF
type="application/x-shockw
</object>
But if I go outside the root directory the files will not play, so if i use the following code for example:
<param name=movie value="wimpy_button.swf?th
This is an existing folder, but it will not locate the file.
Now I realize this may be a weakness of the programming, but I am not getting any help from the developer. Is it possible to play an mp3 when its not located somewhere withing the web folder?
ASKER
Well I was hoping it would be just like an access database to where you can have it outside the root directory and still read and write information to it. How can I stream files then and protect them at the same time?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could do that by using the Flash Media Server but it could get somewhat expensive...
CyanBlue
CyanBlue
this is not weekness of programming, directory outside root is not accessible on webserver..
if you can't access a url simply typing on browser how can that be used in any web application.
Rgds
Aneesh