fix chrome
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user