I’m changing the background of a strip dynamically using code. I’ve figured out how to do it by changing the $w(‘…’).background.src property, but when the source is changed the new video loops even though I’ve set it not to in the Wix editor. Is there a workaround to this? Thanks
I have the same issue
Workaround like this:
After the code that sets the .background.src for the video, place a setTimeout function setting the .background.src to a still image with a delay equal or a few seconds more the length of your video.
$w("#stripvideo").background.src = "video-link";
setTimeout(() => {
$w("#stripvideo").background.src = "image-link";
}, 60000);
Code above will set a still image background after 60sec(60000 millisec) making autoloop no longer a concern.