mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 04:38:55 +03:00
Try autoPlay instead of autoplay
Fixing Mobile Safari bug
This commit is contained in:
parent
a79d0613ec
commit
983dd6623f
1 changed files with 2 additions and 2 deletions
|
@ -517,7 +517,7 @@ function Media({
|
||||||
height={height}
|
height={height}
|
||||||
data-orientation={orientation}
|
data-orientation={orientation}
|
||||||
preload="auto"
|
preload="auto"
|
||||||
autoplay
|
autoPlay
|
||||||
playsinline
|
playsinline
|
||||||
loop={loopable}
|
loop={loopable}
|
||||||
controls
|
controls
|
||||||
|
@ -636,7 +636,7 @@ function Media({
|
||||||
style={!showOriginal && mediaStyles}
|
style={!showOriginal && mediaStyles}
|
||||||
>
|
>
|
||||||
{showOriginal ? (
|
{showOriginal ? (
|
||||||
<audio src={remoteUrl || url} preload="none" controls autoplay />
|
<audio src={remoteUrl || url} preload="none" controls autoPlay />
|
||||||
) : previewUrl ? (
|
) : previewUrl ? (
|
||||||
<img
|
<img
|
||||||
src={previewUrl}
|
src={previewUrl}
|
||||||
|
|
Loading…
Reference in a new issue