var cameraAudio = new Audio();
cameraAudio.src = 'camera.wav';
// Set the properties of the audio object and preload the video
var options_audio = {
preload : 'auto'
}
for(var key in options_audio){
if(options_audio.hasOwnProperty(key) && (key in cameraAudio)){
cameraAudio[key] = options_audio[key];
. autoplay'
Related operations:
1. Play xxx.play()
2. Pause xxx.pause()
File download: Click to download