Skip to content
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

Closed
rafaeleyng opened this issue Jul 28, 2016 · 5 comments
Closed

Can't play sound on iOS #1684

rafaeleyng opened this issue Jul 28, 2016 · 5 comments

Comments

@rafaeleyng
Copy link

rafaeleyng commented Jul 28, 2016

Description:

I cannot get audio to play on iOS, both on Safari and Chrome.

What I tried:

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:

  • Chrome, Safari and Firefox (desktop), Firefox (Android)

but didn't work on:

  • Chrome (Android), Safari and Chrome (iOS)

So, I'm pretty much clueless about how to get audio to play on iOS and would appreciate some tips.

  • A-Frame Version: 0.2.0
  • Platform/Device: iOS 9.3.2, iPhone 6, both Safari and Chrome 51
@ngokevin
Copy link
Member

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.

@rafaeleyng
Copy link
Author

Thanks @ngokevin

@antesberger
Copy link

Is there any solution for this problem by now? I have:

  • video without sound in iOS Safari
  • sound and no video when I pin in it to the homescreen
  • video and sound from other sources than the video in Chrome (Dektop)
  • no problems in Safari (Desktop)

@johnnyshankman
Copy link

johnnyshankman commented Apr 6, 2017

@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 poolSize that I don't get on desktop. @ngokevin is there a default poolSize that gets set only on mobile?

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 <audio> are outside the <a-scene> and <a-assets> and triggered via JS.

Aframe version 0.5.0

@johnnyshankman
Copy link

johnnyshankman commented Apr 6, 2017

components:sound:warn All the sounds are playing. If you need to play more sounds simultaneously consider increasing the size of pool with the `poolSize` attribute. +8s

Which component is this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants