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