Restore call view mode after presentation end
This commit is contained in:
parent
9e1528fa24
commit
80c90540f6
13 changed files with 289 additions and 51 deletions
|
@ -12,6 +12,7 @@ import type {
|
|||
SetLocalVideoType,
|
||||
SetRendererCanvasType,
|
||||
} from '../state/ducks/calling';
|
||||
import { isInSpeakerView } from '../state/selectors/calling';
|
||||
import { Avatar } from './Avatar';
|
||||
import { CallingHeader } from './CallingHeader';
|
||||
import { CallingPreCallInfo, RingMode } from './CallingPreCallInfo';
|
||||
|
@ -61,6 +62,8 @@ export type PropsType = {
|
|||
setPresenting: (_?: PresentedSource) => void;
|
||||
setRendererCanvas: (_: SetRendererCanvasType) => void;
|
||||
stickyControls: boolean;
|
||||
switchToPresentationView: () => void;
|
||||
switchFromPresentationView: () => void;
|
||||
toggleParticipants: () => void;
|
||||
togglePip: () => void;
|
||||
toggleScreenRecordingPermissionsDialog: () => unknown;
|
||||
|
@ -120,6 +123,8 @@ export const CallScreen: React.FC<PropsType> = ({
|
|||
setPresenting,
|
||||
setRendererCanvas,
|
||||
stickyControls,
|
||||
switchToPresentationView,
|
||||
switchFromPresentationView,
|
||||
toggleParticipants,
|
||||
togglePip,
|
||||
toggleScreenRecordingPermissionsDialog,
|
||||
|
@ -131,18 +136,17 @@ export const CallScreen: React.FC<PropsType> = ({
|
|||
hasLocalAudio,
|
||||
hasLocalVideo,
|
||||
localAudioLevel,
|
||||
isInSpeakerView,
|
||||
presentingSource,
|
||||
remoteParticipants,
|
||||
showNeedsScreenRecordingPermissionsWarning,
|
||||
showParticipantsList,
|
||||
} = activeCall;
|
||||
|
||||
useActivateSpeakerViewOnPresenting(
|
||||
useActivateSpeakerViewOnPresenting({
|
||||
remoteParticipants,
|
||||
isInSpeakerView,
|
||||
toggleSpeakerView
|
||||
);
|
||||
switchToPresentationView,
|
||||
switchFromPresentationView,
|
||||
});
|
||||
|
||||
const activeCallShortcuts = useActiveCallShortcuts(hangUpActiveCall);
|
||||
useKeyboardShortcuts(activeCallShortcuts);
|
||||
|
@ -293,7 +297,7 @@ export const CallScreen: React.FC<PropsType> = ({
|
|||
<GroupCallRemoteParticipants
|
||||
getGroupCallVideoFrameSource={getGroupCallVideoFrameSource}
|
||||
i18n={i18n}
|
||||
isInSpeakerView={isInSpeakerView}
|
||||
isInSpeakerView={isInSpeakerView(activeCall)}
|
||||
remoteParticipants={activeCall.remoteParticipants}
|
||||
setGroupCallVideoRequest={setGroupCallVideoRequest}
|
||||
remoteAudioLevels={activeCall.remoteAudioLevels}
|
||||
|
@ -448,7 +452,7 @@ export const CallScreen: React.FC<PropsType> = ({
|
|||
>
|
||||
<CallingHeader
|
||||
i18n={i18n}
|
||||
isInSpeakerView={isInSpeakerView}
|
||||
isInSpeakerView={isInSpeakerView(activeCall)}
|
||||
isGroupCall={isGroupCall}
|
||||
message={headerMessage}
|
||||
participantCount={participantCount}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue