I am currently designing a chatting system. How can I have a sound play (like a popping noise) when a message is received that is cross browser compatible? Is there such a thing? I want to have a similar noise/time of noise to Facebook.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
<audio>tag is a good HTML5 way of playing sound, but suffers from two drawbacks:To get around the audio format problem, we can put multiple versions of the sound in a way that will cause web browsers which don’t support one version to skip forward to the next:
There are libraries which make this process easier and give you more control. jPlayer is one, which gives good cross-browser support including older browsers which do not support the
<audiotag via Flash fallback.