php1 Posted July 2, 2008 Share Posted July 2, 2008 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 Link to comment https://forums.phpfreaks.com/topic/112903-how-to-play-a-wave-file-which-is-stored-in-a-local-directory/ Share on other sites More sharing options...
ag3nt42 Posted July 2, 2008 Share Posted July 2, 2008 sure you can embed the file into the page.. http://www.hypergurl.com/music.html Link to comment https://forums.phpfreaks.com/topic/112903-how-to-play-a-wave-file-which-is-stored-in-a-local-directory/#findComment-580003 Share on other sites More sharing options...
php1 Posted July 3, 2008 Author Share Posted July 3, 2008 kk.. but my problem is that i can't take file from /var/spool/asterisk/recordings. is it possible to play wav file stored in this location Link to comment https://forums.phpfreaks.com/topic/112903-how-to-play-a-wave-file-which-is-stored-in-a-local-directory/#findComment-580660 Share on other sites More sharing options...
php1 Posted July 3, 2008 Author Share Posted July 3, 2008 <td><a href="/var/spool/asterisk/monitor/play1.wav">PLAY</a></td> is it possible to play a wave file my making the link like this. is there any other way to play a wav file Link to comment https://forums.phpfreaks.com/topic/112903-how-to-play-a-wave-file-which-is-stored-in-a-local-directory/#findComment-580662 Share on other sites More sharing options...
thatsgreat2345 Posted July 3, 2008 Share Posted July 3, 2008 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. Link to comment https://forums.phpfreaks.com/topic/112903-how-to-play-a-wave-file-which-is-stored-in-a-local-directory/#findComment-580677 Share on other sites More sharing options...
php1 Posted July 4, 2008 Author Share Posted July 4, 2008 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 Link to comment https://forums.phpfreaks.com/topic/112903-how-to-play-a-wave-file-which-is-stored-in-a-local-directory/#findComment-581572 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.