Well, I'm developing a chat, I'd like to know how I add a simple sound when I get a notification. I'm using Meteor.
Well, I'm developing a chat, I'd like to know how I add a simple sound when I get a notification. I'm using Meteor.
I think it can help, if you have any questions.
var audio = new Audio('audio.mp3');
audio.addEventListener('canplaythrough', function() {
audio.play();
});
Or try using Buzz