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:
Add a Video Background to a WordPress Page with Beaver Builder | Beaver Builder;
and these to shift the video from the row to the full background:
Reddit - Dive into anything.
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’);
});