Skip to content

Commit a082283

Browse files
Daniel-The-FoxCalinoumhilbrunnerskyace65
authored
Add hint reg. Safari audio autoplay restriction when exporting for the web (godotengine#8499)
* Add hint reg. Safari audio autoplay restriction when exporting for the web * Apply suggestions from code review * Apply suggestions from code review * Update tutorials/export/exporting_for_web.rst Co-authored-by: Matthew <[email protected]> --------- Co-authored-by: Hugo Locurcio <[email protected]> Co-authored-by: Max Hilbrunner <[email protected]> Co-authored-by: Matthew <[email protected]>
1 parent 0a01bae commit a082283

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tutorials/export/exporting_for_web.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,15 @@ engine is started from within a valid input event handler. This requires
133133
Audio
134134
~~~~~
135135

136-
Chrome restricts how websites may play audio. It may be necessary for the
137-
player to click or tap or press a key to enable audio.
136+
Some browsers restrict autoplay for audio on websites. The easiest way around this limitation is to request the
137+
player to click, tap or press a key/button to enable audio, for instance when displaying a splash screen at the start of your game.
138138

139139
.. seealso:: Google offers additional information about their `Web Audio autoplay
140140
policies <https://sites.google.com/a/chromium.org/dev/audio-video/autoplay>`__.
141141

142+
Apple's Safari team also posted additional information about their `Auto-Play Policy Changes for macOS
143+
<https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/>`__.
144+
142145
.. warning:: Access to microphone requires a
143146
:ref:`secure context <doc_javascript_secure_contexts>`.
144147

0 commit comments

Comments
 (0)