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