Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to add a message sound in angular

playAudio(){
  let audio = new Audio();
  audio.src = "../../../assets/audio/alarm.wav";
  audio.load();
  audio.play();
}
this.playAudio();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #message #sound #angular
ADD COMMENT
Topic
Name
1+8 =