|
|
|
|
@ -90,6 +90,7 @@ export const StreamPlayer = (props: Props) => { |
|
|
|
|
volumeInPercent, |
|
|
|
|
wrapperRef, |
|
|
|
|
} = useVideoPlayer(props) |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<PlayerWrapper |
|
|
|
|
ref={wrapperRef} |
|
|
|
|
@ -196,13 +197,15 @@ export const StreamPlayer = (props: Props) => { |
|
|
|
|
selectedAudioTrack={selectedAudioTrack} |
|
|
|
|
/> |
|
|
|
|
<ControlsGradient isVisible={mainControlsVisible} /> |
|
|
|
|
!user && <AccessTimer |
|
|
|
|
access={access} |
|
|
|
|
isFullscreen={isFullscreen} |
|
|
|
|
onFullscreenClick={onFullscreenClick} |
|
|
|
|
playing={ready && playing && !!playedProgress} |
|
|
|
|
onPause={onPause} |
|
|
|
|
/> |
|
|
|
|
{!user && ( |
|
|
|
|
<AccessTimer |
|
|
|
|
access={access} |
|
|
|
|
isFullscreen={isFullscreen} |
|
|
|
|
onFullscreenClick={onFullscreenClick} |
|
|
|
|
playing={ready && playing && !!playedProgress} |
|
|
|
|
onPause={onPause} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
</PlayerWrapper> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|