fix chrome

This commit is contained in:
Samuel Newman
2024-08-02 16:54:05 +02:00
parent 3836b10bd5
commit 0be49a15bb
@@ -141,6 +141,14 @@ export function VideoPlayer({
<div
ref={containerRef}
style={{width: '100%', height: '100%', display: 'flex'}}>
<video
ref={ref}
style={{width: '100%', height: '100%', objectFit: 'contain'}}
playsInline
preload="none"
loop
muted={!focused}
/>
<Controls
videoRef={ref}
active={active}
@@ -150,14 +158,6 @@ export function VideoPlayer({
onScreen={onScreen}
enterFullscreen={enterFullscreen}
/>
<video
ref={ref}
style={{width: '100%', height: '100%', objectFit: 'contain'}}
playsInline
preload="none"
loop
muted={!focused}
/>
</div>
</View>
)