Can the audio play without interacting with the browser?
I have a problem trying to play an instructional audio at the start of the game.
I need it to play without the need to interact with the browser, that is, the instant you open the game.
I already tried using AutoPlay in the editor and nothing! Tried calling it with code and it didn’t work either.
On “Start function:”
this.audioPlayer.sound.volume = 1;
this.audioPlayer.sound.addSlot('MySoundSlot', {
loop: false,
autoPlay: true,
asset: this.introAudio,
});
this.audioPlayer.sound.play('MySoundSlot');
If anyone can help me please I appreciate it. I’ve been dealing with that problem for a week