Try autoPlay instead of autoplay

Fixing Mobile Safari bug
This commit is contained in:
Lim Chee Aun 2024-06-11 18:17:19 +08:00
parent a79d0613ec
commit 983dd6623f

View file

@ -517,7 +517,7 @@ function Media({
height={height}
data-orientation={orientation}
preload="auto"
autoplay
autoPlay
playsinline
loop={loopable}
controls
@ -636,7 +636,7 @@ function Media({
style={!showOriginal && mediaStyles}
>
{showOriginal ? (
<audio src={remoteUrl || url} preload="none" controls autoplay />
<audio src={remoteUrl || url} preload="none" controls autoPlay />
) : previewUrl ? (
<img
src={previewUrl}