Streaming Mp3 File located outside the root directory?

Posted on 2006-04-13
Last Modified: 2008-01-09
I am trying to stream mp3 file using the Wimpy Mp3 Player.

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"
 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=""></embed>

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?
Question by:jeffmace
    LVL 34

    Expert Comment

    by:Aneesh Chopra

    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.


    Author Comment

    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?
    LVL 34

    Accepted Solution

    Streaming with protection can be achieved using Flash Media Server (FMS)..

    if you can host your media files on FMS, files can be access by only swf application using proper connection to FMS application and media data will load as stream and will not be stored in Temp Internet files.

    LVL 37

    Expert Comment

    You could do that by using the Flash Media Server but it could get somewhat expensive...


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Adobe Dreamweaver CC 2015

    Adobe Dreamweaver Creative Cloud is used by web designers and front-end developers and allows you to visualize your site in real-time as you code. This course covers exam objectives for the Adobe Certified Associate (ACA) certification.

    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now