Skip to content

Commit

Permalink
fix: update hls view
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 authored Aug 29, 2023
1 parent 2f54563 commit af15288
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useFullscreen, useToggle } from 'react-use';
import { HLSPlaybackState, HMSHLSPlayer, HMSHLSPlayerEvents } from '@100mslive/hls-player';
import screenfull from 'screenfull';
import { selectAppData, selectHLSState, useHMSActions, useHMSStore } from '@100mslive/react-sdk';
import { ExpandIcon, ShrinkIcon } from '@100mslive/react-icons';
import { ExpandIcon, RadioIcon, ShrinkIcon } from '@100mslive/react-icons';
import { HlsStatsOverlay } from '../components/HlsStatsOverlay';
import { HMSVideoPlayer } from '../components/HMSVideo';
import { FullScreenButton } from '../components/HMSVideo/FullscreenButton';
Expand Down Expand Up @@ -288,9 +288,15 @@ const HLSView = () => {
</HMSVideoPlayer.Root>
</Flex>
) : (
<Flex align="center" justify="center" css={{ size: '100%', px: '$10' }}>
<Text variant="md" css={{ textAlign: 'center' }}>
Waiting for the stream to start...
<Flex align="center" justify="center" direction="column" css={{ size: '100%', px: '$10' }}>
<Flex css={{ c: '$on_surface_high', r: '$round', bg: '$surface_default', p: '$2' }}>
<RadioIcon height={56} width={56} />
</Flex>
<Text variant="h5" css={{ c: '$on_surface_high', mt: '$10', mb: 0, textAlign: 'center' }}>
Stream yet to start
</Text>
<Text variant="md" css={{ textAlign: 'center', mt: '$4', c: '$on_surface_medium' }}>
Sit back and relax
</Text>
</Flex>
)}
Expand Down

0 comments on commit af15288

Please sign in to comment.