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 <div
ref={containerRef} ref={containerRef}
style={{width: '100%', height: '100%', display: 'flex'}}> style={{width: '100%', height: '100%', display: 'flex'}}>
<video
ref={ref}
style={{width: '100%', height: '100%', objectFit: 'contain'}}
playsInline
preload="none"
loop
muted={!focused}
/>
<Controls <Controls
videoRef={ref} videoRef={ref}
active={active} active={active}
@@ -150,14 +158,6 @@ export function VideoPlayer({
onScreen={onScreen} onScreen={onScreen}
enterFullscreen={enterFullscreen} enterFullscreen={enterFullscreen}
/> />
<video
ref={ref}
style={{width: '100%', height: '100%', objectFit: 'contain'}}
playsInline
preload="none"
loop
muted={!focused}
/>
</div> </div>
</View> </View>
) )