How to play mp3 file stored outside root folder
Hi,
I hope someone can help me out with this one. I am working on a web application that plays mp3s. The mp3 player I'm using is PseudoMP3, a free .net mp3 player server control. My problem is that i'm trying to secure the mp3 files by saving them in a folder outside of my root, but I can't access the files from my application. My site is hosted by an ISP. My syntax for getting the files is:
PseudoMP3Pick.Src = @"d:\websites\sampleDomain\mp3s\Superman.mp3";
This is how I choose the mp3 file to be played. When the page loads, the player says "Buffering..." and never stops. When I play mp3 files within the root, the player would say "Buffering..." for a few seconds and then starts playing the song.
I'm using C#. Thanks for the help!
|