Video sound automatically on on website

When viewing a video on my website, the music is automatically turned off, and the viewer only has the chance to enable it when hovering over the video (button is below all the way to the right). I would like to have it standard on, and then you can turn it actively off. Is that possible?

I was told that I can perform this action using the " onMouseIn " function and add the sound of the video using the " unmute " function.

This is the coding for it:

export function videoPlayer1_mouseIn(event) { // If the mouse passes over the video, the sound is activated
$w( “#videoPlayer1” ).hide().unmute();
}
export function videoPlayer1_mouseOut(event) { // If the mouse passes over the video, the sound is disable
$w( “#videoPlayer1” ).hide().mute();
}

However, for some reason, this task doesn’t work. Might be a bug in wix, or does anyone has an idea?

Thanks a lot for your thoughts here :wink:

Hi Franziska, I’m having exactly the same challenge did you ever find a solution?

I don’t think that your wished function is possible, due to security reasons.
As i know, the user always first have to to give permission for auto-start-functionality first on his website.

As i can remember a long time ago it was possible.