By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,450 Members | 980 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,450 IT Pros & Developers. It's quick & easy.

Play an audio file locally on server

P: 1
Hi, I'd like to be able to click a button on a web interface, and have an audio file play locally on the server.

I'm using Apache 2.2 in Ubuntu 7.04.

I've tried simply using shell_exec and mplayer, but I cannot use su or sudo to play the file as the user logged into the desktop and the apache user does not appear to have access to the soundcard.

The apparent problem from the command's output for just running mplayer appears to be the line: Terminal type `unknown' is not defined. from mplayer's output.

Everything else appears as when I run the command in terminal, except the output of the actually playing the file that constantly updates.

Thanks.
Jul 22 '07 #1
Share this Question
Share on Google+
1 Reply


kovik
Expert 100+
P: 1,044
A good way to do what you're after is by using Flash.
Jul 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.