From bb314206e937d3af14ca621c50419c50f79eb181 Mon Sep 17 00:00:00 2001 From: Daniel-The-Fox <149774350+Daniel-The-Fox@users.noreply.github.com> Date: Sat, 18 Nov 2023 11:28:09 +0100 Subject: [PATCH 1/4] Add hint reg. Safari audio autoplay restriction when exporting for the web --- 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 7131848c371..b10155126d2 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 `__. +.. seealso:: Apple's Safari team posted additional information about their `Auto-Play Policy Changes for macOS + `__. + .. warning:: Access to microphone requires a :ref:`secure context `. From 8ee61d16e96af3991f1a33a67f29d0941b22654c Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 18 Nov 2023 12:06:57 +0100 Subject: [PATCH 2/4] Apply suggestions from code review --- tutorials/export/exporting_for_web.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/export/exporting_for_web.rst b/tutorials/export/exporting_for_web.rst index b10155126d2..bef75eda865 100644 --- a/tutorials/export/exporting_for_web.rst +++ b/tutorials/export/exporting_for_web.rst @@ -139,7 +139,7 @@ player to click, tap or press a key/button to enable audio, for instance when di .. seealso:: Google offers additional information about their `Web Audio autoplay policies `__. -.. seealso:: Apple's Safari team posted additional information about their `Auto-Play Policy Changes for macOS + Apple's Safari team also posted additional information about their `Auto-Play Policy Changes for macOS `__. .. warning:: Access to microphone requires a From d537253455ccd2b628f9d3a7ae3cfd414f702f8a Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 18 Nov 2023 12:07:55 +0100 Subject: [PATCH 3/4] Apply suggestions from code review --- tutorials/export/exporting_for_web.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/export/exporting_for_web.rst b/tutorials/export/exporting_for_web.rst index bef75eda865..faf4f5912cb 100644 --- a/tutorials/export/exporting_for_web.rst +++ b/tutorials/export/exporting_for_web.rst @@ -139,7 +139,7 @@ player to click, tap or press a key/button to enable audio, for instance when di .. 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 + Apple's Safari team also posted additional information about their `Auto-Play Policy Changes for macOS `__. .. warning:: Access to microphone requires a From c692d7b212f53c5eaff92bf807b79b054fc75484 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Sat, 25 Nov 2023 19:04:14 +0100 Subject: [PATCH 4/4] Update tutorials/export/exporting_for_web.rst Co-authored-by: Matthew --- tutorials/export/exporting_for_web.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/export/exporting_for_web.rst b/tutorials/export/exporting_for_web.rst index faf4f5912cb..6087870e662 100644 --- a/tutorials/export/exporting_for_web.rst +++ b/tutorials/export/exporting_for_web.rst @@ -139,7 +139,7 @@ player to click, tap or press a key/button to enable audio, for instance when di .. 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 + Apple's Safari team also posted additional information about their `Auto-Play Policy Changes for macOS `__. .. warning:: Access to microphone requires a