开发者

php: play sound when receiving a message

开发者 https://www.devze.com 2023-03-21 06:57 出处:网络
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.

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

精彩评论

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

关注公众号