How to prevent mp4 video in background from looping

I have used beaver builder for placing an mp4 video in the background of my page, using these instructions:

and these to shift the video from the row to the full background:
https://www.reddit.com/r/Wordpress/comments/gg2st0/looking_to_add_a_video_background_to_an_astra/.
This has worked like a charm except I want the video to play only once, and then stay on the frame. I have only found the below instructions and tried getting them into my web page with plugin code snippets, but it doesn’t seem to work (I’m an absolute beginner).

Instructions from web for preventing loop:
jQuery(window).load(function () {
jQuery(’.video-bg-noloop video’).removeAttr(‘loop’);
});