Video carousel fix

This commit is contained in:
austinkelsay 2024-11-11 15:26:46 -06:00
parent ae7a4cfd8d
commit 41bdadc6b1
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02

@ -98,14 +98,14 @@ const InteractivePromotionalCarousel = () => {
{selectedPromotion.video ? ( {selectedPromotion.video ? (
<video <video
ref={videoRef} ref={videoRef}
src={selectedPromotion.video}
className={`object-cover w-full ${isTabView ? 'h-[300px] rounded-lg' : 'h-full rounded-tr-none rounded-br-none'} rounded-lg opacity-100`} className={`object-cover w-full ${isTabView ? 'h-[300px] rounded-lg' : 'h-full rounded-tr-none rounded-br-none'} rounded-lg opacity-100`}
loop loop
muted muted
playsInline playsInline
crossOrigin="anonymous" autoPlay
onError={(e) => console.warn('Video error:', e)} >
/> <source src={selectedPromotion.video} type="video/mp4" />
</video>
) : ( ) : (
<Image <Image
src={returnImageProxy(selectedPromotion.image)} src={returnImageProxy(selectedPromotion.image)}