Playing sound notifications using Javascript?
audio, javascript, jquery
Solution
Use this plugin: https://github.com/admsev/jquery-play-sound
$.playSound('http://example.org/sound.mp3');
Problem
How can I do that, so whenever a user clicks a link we play a sound? Using javascript and jquery here.
Related problems
- How to play a notification sound on websites?
- Cross-platform, cross-browser way to play sound using jQuery 1.4?
- How to handle "Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first." on Desktop with Chrome 66?
- Cross-platform, cross-browser way to play sound from Javascript?