Skip to content

Conversation

@Daniel-The-Fox
Copy link
Contributor

Hi there,

I wondered why the audio of my game uploaded to itch.io isn't autoplaying in Safari.
I then tried to trigger/fake a mouse click via Input.parse_input_event() in _ready(), but this didn't work of course as this is passing an input signal from Godot to Godot inside Godot (silly me! 🤣) and not from the OS to Safari and then to Godot (the game).

After googling for a while, I found a Webkit blog post by the Safari team explaining how/why audio autoplay is blocked in Safari for most of the websites. I thought, it might make sense to add this info to the docs on "Exporting for the Web", in addition to the already existing hint that Chrome also blocks audio autoplay.

@Daniel-The-Fox Daniel-The-Fox force-pushed the Add-hint-to-Safari-default-audio-autoplay-block-for-exporting-to-web branch from 9c9b549 to bb31420 Compare November 18, 2023 10:42
@Calinou Calinou added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.1 labels Nov 18, 2023
Co-authored-by: Matthew <matthewehr@hotmail.com>
@mhilbrunner mhilbrunner merged commit a082283 into godotengine:master Nov 25, 2023
@mhilbrunner
Copy link
Member

Squashed and merged. Thanks for contributing to Godot's documentation!

@Daniel-The-Fox Daniel-The-Fox deleted the Add-hint-to-Safari-default-audio-autoplay-block-for-exporting-to-web branch November 26, 2023 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.1 enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants