aframe icon indicating copy to clipboard operation
aframe copied to clipboard

No sound on IOS

Open fulvioromanin opened this issue 10 years ago • 1 comments

I was triggering an animation with sound, exactly using

document.querySelector('#gruppo_uno').addEventListener('sound-ended', function(){
       document.querySelector('#vignetta1_arrow_up').setAttribute('visible','true');
    });

but on IOS sound-ended does not even seem to work, and i don't seem to get any audio playing.

I tried even with simpler stuff like

  <a-scene>
  <a-entity sound="src: assets/audio/03.vignetta3.mp3; autoplay: true"></a-entity>
</a-scene>

but i get no sound from IOS. Any idea?

  • A-Frame Version: 0.2.0
  • Platform/Device: IOS

fulvioromanin avatar Jul 30 '16 14:07 fulvioromanin

Safari Mobile requires user action to play a sound.

dmarcos avatar Aug 03 '16 23:08 dmarcos