On my wix website (luisajo.com), I show a full screen video right at the beginning. Here I want the sound to start automatically, and the visitor can then choose to turn it off when needed.
I have the following coding, which is not working:
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();
}
Where is the mistake or what do I need to do?
Many thanks for your help,
Franziska