Skip to content

Commit

Permalink
Merge branch 'dev' into feat/update-ts-pattern-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 authored Mar 26, 2024
2 parents c1aa8dc + 1cf6e55 commit 58c9fa5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/roomkit-react/src/Prebuilt/layouts/HLSView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,10 @@ const HLSView = () => {
if (isFullScreen) {
toggle();
}
toggleChat();
// toggle and closing fullscreen takes few ms, to make it synced we are calling settimeout
setTimeout(() => {
toggleChat();
}, 0);
}}
/>
)}
Expand Down
14 changes: 12 additions & 2 deletions packages/roomkit-react/src/Stats/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = f
}
const layer = stat.rid ? simulcastMapping[stat.rid as RID] : '';
return (
<Fragment>
<Fragment key={`${stat.id}${stat.rid}`}>
{layer && <StatsRow label={layer.toUpperCase()} value="" />}
<StatsRow
show={isNotNullishAndNot0(stat.frameWidth)}
Expand Down Expand Up @@ -106,6 +106,16 @@ export function VideoTileStats({ videoTrackID, audioTrackID, peerID, isLocal = f
: ''
}`}
/>
<StatsRow
show={isNotNullish(videoTrackStats?.totalPausesDuration)}
label="Pauses Duration"
value={videoTrackStats?.totalPausesDuration}
/>
<StatsRow
show={isNotNullish(videoTrackStats?.totalFreezesDuration)}
label="Freezes Duration"
value={videoTrackStats?.totalFreezesDuration}
/>
<StatsRow
show={isNotNullish(videoTrackStats?.bitrate)}
label="Bitrate(V)"
Expand Down Expand Up @@ -185,7 +195,7 @@ const RawStatsRow = ({
show?: boolean;
tooltip?: string;
}) => {
const statsLabel = <Stats.Label css={{ fontWeight: !value ? '$semiBold' : '$regular' }}>{label}</Stats.Label>;
const statsLabel = <Stats.Label>{label}</Stats.Label>;

return (
<>
Expand Down

0 comments on commit 58c9fa5

Please sign in to comment.