Jump to content

How to play a wave file which is stored in a local directory


php1

Recommended Posts

Dear all ,

 

I have wav files(audio files) stored in my /var/spool/asterisk/monitor folder. when i click on play button or a link I was not able to play .

 

<td><a href="/var/spool/asterisk/monitor/play1.wav">PLAY</a></td>

 

when I do like this one error war displaying "file not found in the server "/var/spool/asterisk/play1.wav"  some thing like this.

 

anybody have an idea on how to play wav files. thanks in advance

 

If you do it with the link it will navigate to that page and whatever the default player is on the persons computer will either start to play it or the file will be prompted for download. You can possibly look into using flash to play it when the person clicks the play button. Then use PHP to determine what file to play based on some GET or POST and or load the filenames from a database.

when i tried to make a link like above I am not able to play the .wav file.Iits showing the error message "file not found in the server". But actually the file is there in the folder. i have the doubt that can we give the link as a local directory like "/var/spool/asterisk". any error in this.

any body please help

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.