fix(#2542): added chekc for ios

keep-around/2fd168b18eeebc91eac94ae86d817c12edfe1576
Rakov Roman 3 years ago
parent d819b7e9fe
commit 505fd803d5
  1. 4
      src/features/VideoPlayer/index.tsx

@ -1,5 +1,7 @@
import { forwardRef } from 'react'
import { isIOS } from 'config/userAgent'
import type { Props } from './hooks'
import { useVideoPlayer } from './hooks'
import { Video } from './styled'
@ -40,7 +42,7 @@ export const VideoPlayer = forwardRef<HTMLVideoElement, Props>((props: Props, re
} = useVideoPlayer({ ...props, ref })
return (
<Video
autoPlay
autoPlay={isIOS}
playsInline
className={className}
width={width}

Loading…
Cancel
Save