Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript play audio

//play audio with from html audio element: 
document.getElementById('myAudioTagID').play();

//play audio with out html audio tag
var myAudio = new Audio('my_great_song.mp3');
myAudio.play();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #play #audio
ADD COMMENT
Topic
Name
5+5 =