Open meghe2000 opened 1 year ago
const AudioContext = window.AudioContext || window.webkitAudioContext const audioCtx = new AudioContext() function addAudio(name) { fetch(loader(name)).then(response => response.arrayBuffer()).then(buffer => audioCtx.decodeAudioData(buffer)).then(buffer => { sound.add({ [name[0]]: buffer, }, { preload: true }) }) } for (const n of ['1.mp3', '3.ogg', '4.mp3', '5.mp3']) addAudio(n)
//after run this function get error sound.play('3')
sound.play('3')
The error is received only on Safari Mobile.
3.ogg.zip The rest of the sounds are played well. But this sound gives an error on safari.
//after run this function get error
sound.play('3')
The error is received only on Safari Mobile.