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

Audio doesn't work in safari? #4217

Closed
increpare opened this issue Dec 6, 2018 · 5 comments
Closed

Audio doesn't work in safari? #4217

increpare opened this issue Dec 6, 2018 · 5 comments

Comments

@increpare
Copy link

Version

  • Browser:
    safari 12.0.1

Description

On the cat astro phi demo page clicking buttons produces no audio on safari on osx, but works fine on chrome 70.0.3538.110.

Example Test Code

https://labs.phaser.io/view.html?src=src\audio\HTML5%20Audio\AudioSprite.js

Additional Information

This is probably due to how safari handles audiocontexts now ( https://hackernoon.com/unlocking-web-audio-the-smarter-way-8858218c0e09 ), and how chrome will very, very soon ( https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/5Y1BqbGauEs/rRocaytKBgAJ ) .

@samme
Copy link
Contributor

samme commented Dec 8, 2018

[Log] Phaser v3.16.0 Beta 3 (WebGL | HTML5 Audio) https://phaser.io (dev.js, line 6326)
[Warning] NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. (dev.js, line 149835)
play
playCatchPromise — HTML5AudioSound.js:384
pickAndPlayAudioTag — HTML5AudioSound.js:287
play — HTML5AudioSound.js:129
playAudioSprite — BaseSoundManager.js:300
(anonymous function) — AudioSprite.js:65
emit — index.js:183
processDownEvents — InputPlugin.js:800
update — InputPlugin.js:555
[…]

@SoimanAndrei
Copy link

Hey guys!
Any progress? :)

@photonstorm
Copy link
Collaborator

This works fine with 3.16 RC3 in Safari on Mac OS using either Web Audio or the Audio Tag.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

@guilala
Copy link

guilala commented May 23, 2019

What commit contains the fix? Is the fix also merged to Phaser CE?

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

5 participants