Video hold on last frame

When video ends, I would like it to remain on the last frame, rather than snapping back to first frame.
I have it set up so that when you click on a link, a video plays, then it takes you to a new page. The problem is that when the video is over, it goes back to the first frame, then links to the new page. I would like it to remain on the last frame, so it transitions from there to the new page.

Here’s the code I have so far:

import wixLocation from ‘wix-location’ ;
$w.onReady( function () {
//TODO: write your page related code here…
});

export function text37_click_1 (event) {
$w( ‘#videoPlayer1’ ).play(); $w( ‘#videoPlayer1’ ).onEnded( event1 => {
wixLocation.to( ‘/100-yrs-ago#anchor2’ ); // use your page path and your anchor id
});
}

Also in the properties for the link, I have ‘click on’ checked.

Thanks for your help. I hope it’s a simple fix,

1 Like

I could use some help on this one two. How to pause the last frame in a video before loading the next page ?
Thanx
Marc :slight_smile: