Via code I can set a strip background to a static image, but not to a video. Here’s my code:
export function pauseBtn_click(event) {
const staticImg = ‘https://static.wixstatic.com/media/53ee15_978b8562454c4298bbf6b20d7b0babb4~mv2.jpg’ ;
const videoUri = ‘https://video.wixstatic.com/video/53ee15_6e214ac33f794cccb69ec00d9de6614c/480p/mp4/file.mp4’ ;
if ($w( ‘#hero’ ).background.src === staticImg) {
$w( ‘#hero’ ).background.src = videoUri;
} else {
$w( ‘#hero’ ).background.src = staticImg;
}
}
P.S: In the docs for background.src, what does video_uri and posterUri stand for? And where can I find them?
Heres an example.
wix:video://v1/<video_uri>/#posterUri=<poster_uri>&posterWidth=&posterHeight=