Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

play an audio at a specific volume in javascript

var music = new audio({
    loop: true,
    volume: 1,
    src: ['music.mp3']
})

//or 

var music = new Audio('music.mp3');
music.loop = true;
music.volume = 0.2;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #play #audio #specific #volume #javascript
ADD COMMENT
Topic
Name
1+5 =