Skip to main content
Call Our Team Email Us
Menu

Video Library

Video Library

Welcome to the Promolux video library. This collection gives insight into the importance of color in food merchandising, the importance of using the right lighting to protect perishable food, some history on the development of Promolux lighting, and explains why Promolux lighting is the ideal choice for fresh food merchandising.

`;
});

var swiper = new Swiper(".video-slider", {
slidesPerView: 3,
spaceBetween: 20,
loop: true,
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
},
autoplay: {
delay: 4000,
disableOnInteraction: false,
},
breakpoints: {
1024: { slidesPerView: 3 },
768: { slidesPerView: 2 },
480: { slidesPerView: 1 },
0: { slidesPerView: 1 }
}
});

// Stop autoplay when video is playing or slider is interacted with
const iframes = document.querySelectorAll('.youtube-video');
iframes.forEach(iframe => {
iframe.addEventListener('load', () => {
const player = new YT.Player(iframe, {
events: {
'onStateChange': (event) => {
if (event.data === YT.PlayerState.PLAYING) {
swiper.autoplay.stop();
} else if (event.data === YT.PlayerState.ENDED || event.data === YT.PlayerState.PAUSED) {
swiper.autoplay.start(); // Restart autoplay when video ends or is paused
}
}
}
});
});
});

// Stop autoplay on slider interaction
swiper.on('touchStart', () => {
swiper.autoplay.stop();
});