Skip to content

Commit cd866db

Browse files
committed
fix: [CarouselDVC] Fix play video on safari by adding "playsInline" attribute
1 parent f926728 commit cd866db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/CarouselDVC.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export const CarouselDVC: FC<CarouselDVCProps> = observer(({
180180
useKeyboardArrows={useKeyboardArrows}
181181
swipeable={swipeable}
182182
emulateTouch={emulateTouch}
183-
autoPlay={autoPlay ? autoPlau : isAutoPlay}
183+
autoPlay={autoPlay ? autoPlay : isAutoPlay}
184184
interval={interval}
185185
infiniteLoop={infiniteLoop}
186186
onChange={onChange.length > 0 ? onChange : defaultOnChange}
@@ -213,10 +213,16 @@ export const CarouselDVC: FC<CarouselDVCProps> = observer(({
213213
className="diapo-container"
214214
src={media.url}
215215
type={media.mime_type}
216+
<<<<<<< Updated upstream
216217
preload="auto"
217218
muted="muted"
218219
onLoadeddata={handleLoadedData}
219220
/>
221+
=======
222+
preload="none"
223+
muted="muted"
224+
playsInline/>
225+
>>>>>>> Stashed changes
220226
}
221227
</div>);
222228
})

0 commit comments

Comments
 (0)