Link to home
Start Free TrialLog in
Avatar of jeffmace
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-AE6D-11cf-96B8-444553540000"
 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?theFile=../mp3/#mp3#">
      <param name=quality value=high>
      <param name=wmode value=transparent>
      <embed src="wimpy_button.swf?theFile=../mp3/#mp3#" quality=high width="40" height="40" name="wimpy_button_#ID#"
 type="application/x-shockwave-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?theFile=../../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?
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Hi,

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
Avatar of jeffmace
jeffmace

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
Avatar of Aneesh Chopra
Aneesh Chopra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You could do that by using the Flash Media Server but it could get somewhat expensive...

CyanBlue