bc6caddcc8
* add mutation observer hok * add hook to read speaking member by observing iframe content * display speaking member name in call status bar and improve layout * fix shrining * add joined call control bar * remove chat toggle from room header * change member speaking icon to mic * fix joined call control appear in other * show spinner on end call button * hide call statusbar for mobile view when room is selected * make call statusbar more mobile friendly * fix call status bar item align
19 lines
614 B
TypeScript
19 lines
614 B
TypeScript
import React from 'react';
|
|
import { useCallEmbed } from '../hooks/useCallEmbed';
|
|
import { CallStatus } from '../features/call-status';
|
|
import { useSelectedRoom } from '../hooks/router/useSelectedRoom';
|
|
import { ScreenSize, useScreenSizeContext } from '../hooks/useScreenSize';
|
|
|
|
export function CallStatusRenderer() {
|
|
const callEmbed = useCallEmbed();
|
|
const selectedRoom = useSelectedRoom();
|
|
|
|
const screenSize = useScreenSizeContext();
|
|
|
|
if (!callEmbed) return null;
|
|
|
|
if (screenSize === ScreenSize.Mobile && callEmbed.roomId === selectedRoom) return null;
|
|
|
|
return <CallStatus callEmbed={callEmbed} />;
|
|
}
|