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

Spatial audio doesn't work in iOS12.01 safari #22

Open
KeiNitta opened this issue Nov 1, 2018 · 4 comments
Open

Spatial audio doesn't work in iOS12.01 safari #22

KeiNitta opened this issue Nov 1, 2018 · 4 comments

Comments

@KeiNitta
Copy link

KeiNitta commented Nov 1, 2018

Hi.
I tried resonance Audio SDK for web in (iOS12.0.1/safari & OSX10.13.6/safari) . But it did't work at all.
Official Web sample didn't play any sound in this environments.

In iOS11.2.5, it seems to work well. Would anyone tell me this reason?

@hoch
Copy link
Collaborator

hoch commented Nov 1, 2018

Just to clarify:
Safari on iOS 11.2.5 = Working
Safari on iOS 12.0.1 = Not working
Safari on OSX 10.13.6 = Not working

Do you see any error messages in the developer console?

@KeiNitta
Copy link
Author

KeiNitta commented Nov 2, 2018

@hoch Thank you for reply.
In iOS 12.0.1 and OSX10.13.6, Hello world Demo show these message when push play button. There was nothing error message.

[Log] [Omnitone] Version 1.0.6 (running Safari 12.0.1 on Mac OS X) (@144.00ms) (resonance-audio.min.js, line 166)
[Log] [Omnitone] Safari detected. Appliying polyfill... (@144.00ms) (resonance-audio.min.js, line 166)
[Log] [Omnitone] FOARenderer: Initializing... (mode: ambisonic) (@280023.00ms) (resonance-audio.min.js, line 166)
[Log] [Omnitone] BufferList: 2 AudioBuffers from Base64-encoded HRIRs loaded successfully. (@280231.00ms) (resonance-audio.min.js, line 166)
[Log] [Omnitone] FOARenderer: HRIRs loaded successfully. Ready. (@280232.00ms) (resonance-audio.min.js, line 166)

@hoch
Copy link
Collaborator

hoch commented Nov 2, 2018

I think this is related to CORS issue. I am seeing the same problem when I run Omnitone example:
https://rawgit.com/GoogleChrome/omnitone/master/examples/foa-renderer.html

MediaElementAudioSource outputs zeroes due to CORS access restrictions for https://rawgit.com/GoogleChrome/omnitone/master/examples/resources/4ch_B_FuMaNorm_FuMaOrd_speech.wav

At least Chrome Canary (72.0.3599.0) produces this error, so I can track it from there.

@ubershmekel
Copy link

I can confirm:

To summarize - this issue is definitely caused by CORS. But there might be more problems too.

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

No branches or pull requests

3 participants