-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't play sound on iOS #1684
Comments
Hi, I moved to http://stackoverflow.com/questions/38645716/cant-play-sound-on-ios because I think this is a question and a matter of figuring out how to use WebAudio on mobile, rather than A-Frame issue. |
Thanks @ngokevin |
Is there any solution for this problem by now? I have:
|
@antesberger i only get video without sound on iOS Safari. Downloading to homescreen gives me sound and video. I'd check the filesize/encoding of your video maybe? My big issue is that in iOS Safari even if I write my own sound handlers I get complaints from some global component about the I can't figure out how to identify which entity is playing my random sound (via bubbling up I guess?) and has the default pool size. Frankly I'm confused as to how Aframe is even aware I'm playing these audio files, as this warning occurs even when the Aframe version 0.5.0 |
Which component is this? |
Description:
I cannot get audio to play on iOS, both on Safari and Chrome.
What I tried:
autoplay
directly on the component. Enable autoplay of sounds for iOS and Chrome for Android #1463 made me think right away that this wouldn't work. But Enable autoplay of sounds for iOS and Chrome for Android #1463 description implies that it wouldn't work for Chrome for Android, but it does work for me.entity.components.sound.play()
, both with a setTimeout and with user events.Both approaches worked properly in Chrome for Android and desktop browsers (Chrome, Safari and Firefox). In Firefox for Android, my app crashes even before I could try the audio, but that is just information, I'm not focusing on Firefox.
I inspected the iOS Safari console and network tabs with remote debug and there wasn't any error or something.
Also, as a side note, I tried the a-wakens demo, and it worked on:
but didn't work on:
So, I'm pretty much clueless about how to get audio to play on iOS and would appreciate some tips.
The text was updated successfully, but these errors were encountered: