开发者

php: play sound when receiving a message

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 开发者_Python百科make something like this in the php or jquery or ajax?

please help me

Thank you


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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜