Hey,
I have placed a video BEHIND my website header. The issue is that despite the fact that I did NOT set the video to loop when I made it, the video loops continuously when placed behind the header. Is there something I can do stop the video from looping? The way I made it, it should end with the last frame of the video (see screen cap). And, when I play the video in any media player, it plays once and stops - no looping. Is there custom code I can add to stop the looping on my JABuilder page? Anyone know of any way to ensure the video plays just once?
[upl-image-
UPDATE: I looked around the web and found the following code. It seems to have stopped the looping. If anyone thinks the code is troublesome, please let me know. Otherwise, this seems to have corrected the problem:
<script>
jQuery(document).ready(function($){
function no_bg_loop () {
$('video').prop('loop', false);
}
$(document).ready( no_bg_loop );
$(window).load ( no_bg_loop );
no_bg_loop();
setTimeout(function(){
jQuery('video.x-mejs.has-stack-styles').on('ended', function() {
jQuery(this)[0].pause();
});
},5000);
});
</script>