# Autoplay music doesnot work

**URL:** <https://forum.8thwall.com/t/autoplay-music-doesnot-work/792>\
**Category:** Technical Support\
**Created:** [March 19, 2024, 12:43pm UTC](https://forum.8thwall.com/t/autoplay-music-doesnot-work/792 "2024-03-19T12:43:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![valen\_antonius](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@valen\_antonius](https://forum.8thwall.com/u/valen_antonius)\
**Post date:** [March 19, 2024, 12:43pm UTC](https://forum.8thwall.com/t/autoplay-music-doesnot-work/792/1 "2024-03-19T12:43:38Z")

</div>

Help me please. My glb animation autoplay works, but the music autoplay is not working. Some device can play the music once. But after refresh there is no music. Some device no music at all.

---

<div class="post-metadata">

**Author:** ![Joao\_Pratas](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Joao\_Pratas](https://forum.8thwall.com/u/Joao_Pratas)\
**Post date:** [March 19, 2024, 1:10pm UTC](https://forum.8thwall.com/t/autoplay-music-doesnot-work/792/2 "2024-03-19T13:10:37Z")

</div>

Hi @valen_antonius  
You will need a click to activate the audio.

Here I’d suggest either a click in the main experience to activate it or perhaps adding a splash screen with a ‘launch’ button and, from that click event then you can trigger the audio and it should be playing when the experience appears behind the splash screen.

You could very well take this playground example as a reference:

> **[Splash Screen | 8th Wall Playground | 8th Wall](https://www.8thwall.com/playground/splash-screen-aframe)**
>
> This project illustrates how to delay the initialization of the AR engine until the user clicks the "Start AR" button.

Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![valen\_antonius](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@valen\_antonius](https://forum.8thwall.com/u/valen_antonius)\
**Post date:** [March 19, 2024, 4:58pm UTC](https://forum.8thwall.com/t/autoplay-music-doesnot-work/792/3 "2024-03-19T16:58:27Z")

</div>

Thank you for your reply. Is this the only way?  
Because the earlier version my autoplay is working just fine on the glb animation and music. Thank youu

---

<div class="post-metadata">

**Author:** ![Joao\_Pratas](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@Joao\_Pratas](https://forum.8thwall.com/u/Joao_Pratas)\
**Post date:** [March 19, 2024, 5:20pm UTC](https://forum.8thwall.com/t/autoplay-music-doesnot-work/792/4 "2024-03-19T17:20:00Z")

</div>

@valen_antonius unfortunately, yes this is known to be the only way.

To be clear, this is not a limitation on the technology in any way. This is based on web standards, which are majorly defined by both the W3C and the Mozilla Foundation.

You can find out more about this here:

> **[Audio or video element avoids automatically playing audio](https://www.w3.org/WAI/standards-guidelines/act/rules/80f0bf/proposed/)**
>
> Accessibility resources free online from the international standards organization: W3C Web Accessibility Initiative (WAI).

You will need a click in some way somewhere in the experience to allow the sound to play. This doesn’t necessarily need to be a splash screen, as long as there’s a click registered by the user in the experience the audio should play without a problem after the click.

---

<div class="post-metadata">

**Author:** ![Ian](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/ian/32/430_2.png) [@Ian](https://forum.8thwall.com/u/Ian)\
**Post date:** [March 19, 2024, 6:04pm UTC](https://forum.8thwall.com/t/autoplay-music-doesnot-work/792/5 "2024-03-19T18:04:42Z")

</div>

to give more context, Autoplay policies for videos with audio (or audio by itself) differ between browsers, such as Safari and Chrome. By default, Safari will only autoplay a video if it doesn’t have an audio track or if the video element includes the “muted” attribute. Playback will pause if the element gains an audio track or becomes unmuted without user interaction. You can find more information about Safari’s autoplay policies in the **[official Apple documentation](https://developer.apple.com/documentation/webkit/delivering_video_content_for_safari)**.

For Chrome, autoplay with sound is allowed if the user has interacted with the domain (e.g., through a click or tap). More details about Chrome’s autoplay policy changes can be found in the **[Google Developers documentation](https://developers.google.com/web/updates/2017/09/autoplay-policy-changes)**.

If you’re looking for an example project that plays a video with sound when the user taps on an image target, you can check out **[8th Wall’s Playground example](https://www.8thwall.com/playground/image-target-video-sound)**.
