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

View File

@ -98,14 +98,14 @@ const InteractivePromotionalCarousel = () => {
{selectedPromotion.video ? (
<video
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`}
loop
muted
playsInline
crossOrigin="anonymous"
onError={(e) => console.warn('Video error:', e)}
/>
autoPlay
>
<source src={selectedPromotion.video} type="video/mp4" />
</video>
) : (
<Image
src={returnImageProxy(selectedPromotion.image)}