Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS sound

var audio = new Audio('assets/audio.mp3');

> Play
audio.play();
> Stop
sound.pause();
> Back to start
sound.currentTime = 0;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JS #sound
ADD COMMENT
Topic
Name
8+7 =