0

Ex: i have mp3 file <- that is for message sound

i want to make a restaurant's script, when the customer make an order, the sound is rings in the employee's browser.

Can I make something like this in the php or jquery or ajax?

please help me

Thank you

rixlinux
  • 199
  • 1
  • 3
  • 12
  • Open this link and hope you can find a better solution http://stackoverflow.com/questions/15483455/play-sound-when-message-received/15498712#15498712 – Azam Alvi Mar 19 '13 at 11:59

2 Answers2

0

You will need to use php to record the customer data to record the customer's order data. But to play a message you will have to use javascript. Here's a link that might help

Cross-platform, cross-browser way to play sound from Javascript?

Community
  • 1
  • 1
Saad Imran.
  • 4,480
  • 2
  • 23
  • 33
0

What kind of browser support are looking at? This is achievable with the HTML5 audio JS api. If you are looking for wider browser support, you will probably want to use Flash to hold the sounds.

simshaun
  • 21,263
  • 1
  • 57
  • 73