Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

control audio javascript

var audio = new Audio("folder_name/audio_file.mp3");
audio.currentTime = 0;	// Set audio play time from the beginning of audio
audio.play();			// start playing audio
audio.pause();			// pause audio
 
PREVIOUS NEXT
Tagged: #control #audio #javascript
ADD COMMENT
Topic
Name
4+5 =