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