From a0822839f62924410b1825b983c422c844548e5a Mon Sep 17 00:00:00 2001 From: Daniel The Fox <149774350+Daniel-The-Fox@users.noreply.github.com> Date: Sat, 25 Nov 2023 19:16:53 +0100 Subject: [PATCH] Add hint reg. Safari audio autoplay restriction when exporting for the web (#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 --------- Co-authored-by: Hugo Locurcio Co-authored-by: Max Hilbrunner Co-authored-by: Matthew --- tutorials/export/exporting_for_web.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tutorials/export/exporting_for_web.rst b/tutorials/export/exporting_for_web.rst index 574d779fe..b4b96599c 100644 --- a/tutorials/export/exporting_for_web.rst +++ b/tutorials/export/exporting_for_web.rst @@ -133,12 +133,15 @@ engine is started from within a valid input event handler. This requires Audio ~~~~~ -Chrome restricts how websites may play audio. It may be necessary for the -player to click or tap or press a key to enable audio. +Some browsers restrict autoplay for audio on websites. The easiest way around this limitation is to request the +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. .. seealso:: Google offers additional information about their `Web Audio autoplay policies `__. + Apple's Safari team also posted additional information about their `Auto-Play Policy Changes for macOS + `__. + .. warning:: Access to microphone requires a :ref:`secure context `.