Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: spacing, controls background #2644

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 45 additions & 43 deletions packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -455,49 +455,51 @@ const HLSView = () => {
<>
{isMobile || isLandscape ? (
<>
{!showLoader && hlsState?.variants[0]?.playlist_type === HLSPlaylistType.DVR && (
<Flex
align="center"
justify="center"
css={{
position: 'absolute',
bg: '#00000066',
display: 'inline-flex',
gap: '$2',
zIndex: 1,
size: '100%',
visibility: controlsVisible ? `` : `hidden`,
opacity: controlsVisible ? `1` : '0',
}}
>
<HMSVideoPlayer.Seeker
title="backward"
css={{
visibility: isSeekEnabled ? `` : `hidden`,
opacity: isSeekEnabled ? `1` : '0',
}}
>
<BackwardArrowIcon width={32} height={32} />
</HMSVideoPlayer.Seeker>
<Box
css={{
bg: 'rgba(0, 0, 0, 0.6)',
r: '$round',
}}
>
<HMSVideoPlayer.PlayPauseButton isPaused={isPaused} width={48} height={48} />
</Box>
<HMSVideoPlayer.Seeker
title="forward"
css={{
visibility: isSeekEnabled ? `` : `hidden`,
opacity: isSeekEnabled ? `1` : '0',
}}
>
<ForwardArrowIcon width={32} height={32} />
</HMSVideoPlayer.Seeker>
</Flex>
)}
<Flex
raviteja83 marked this conversation as resolved.
Show resolved Hide resolved
align="center"
justify="center"
css={{
position: 'absolute',
bg: '#00000066',
display: 'inline-flex',
gap: '$2',
zIndex: 1,
size: '100%',
visibility: controlsVisible ? `` : `hidden`,
opacity: controlsVisible ? `1` : '0',
}}
>
{!showLoader && hlsState?.variants[0]?.playlist_type === HLSPlaylistType.DVR && (
<>
<HMSVideoPlayer.Seeker
title="backward"
css={{
visibility: isSeekEnabled ? `` : `hidden`,
opacity: isSeekEnabled ? `1` : '0',
}}
>
<BackwardArrowIcon width={32} height={32} />
</HMSVideoPlayer.Seeker>
<Box
css={{
bg: 'rgba(0, 0, 0, 0.6)',
r: '$round',
}}
>
<HMSVideoPlayer.PlayPauseButton isPaused={isPaused} width={48} height={48} />
</Box>
<HMSVideoPlayer.Seeker
title="forward"
css={{
visibility: isSeekEnabled ? `` : `hidden`,
opacity: isSeekEnabled ? `1` : '0',
}}
>
<ForwardArrowIcon width={32} height={32} />
</HMSVideoPlayer.Seeker>
</>
)}
</Flex>
<Flex
ref={controlsRef}
direction="column"
Expand Down
Loading