How can I add in wix studio, music that plays automatically when the site runs?

Question:
How can I add in wix studio, music that plays automatically when the site runs ??

Product:
Wix Studio Editor

What are you trying to achieve:
To add music that runs automatically

What have you already tried:
all the existing addon elements

Additional information:
in the regural edition there in a way , in Wix studio no. Why ?

Hi, @Ourania_Tyliou !!

Hello, this topic has been discussed multiple times on this forum, and the general consensus is that (initial) autoplay of music is quite difficult. This isn’t a limitation specific to Wix but rather a restriction imposed by modern browsers as a whole. Since websites built with Wix are also accessed through browsers, they are naturally subject to this restriction. :upside_down_face:

Generally, once a user has interacted with the site and played audio at least once, you can use Velo code with .play() to enable autoplay afterward. Alternatively, was there a special element in the standard Wix Editor that allowed this functionality? I’m not too familiar with that feature, but I just wanted to clarify that achieving something similar in Wix Studio is not impossible with a simple Velo code implementation. :raised_hands:

That being said, playing music without any user action is difficult. A practical solution would be to create a button at the entrance of the site asking, ‘Would you like to allow music playback on this site?’ and prompting users to click it before enabling audio playback. :laughing: