How to implement the sound playback function when opening a new message?
From the code found on the Internet has extracted:
$(function() { chatAudio = function() { $('<audio id="chatAudio"><source src="sound.ogg" type="audio/ogg"><source src="sound.mp3" type="audio/mpeg"><source src="sound.aac" type="audio/aac"></audio>').appendTo('body'); } }); I would appreciate any help!