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