mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Video carousel fix
This commit is contained in:
parent
ae7a4cfd8d
commit
41bdadc6b1
@ -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)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user