Calling: Picture-in-picture

This commit is contained in:
Josh Perez 2020-09-30 20:43:05 -04:00 committed by Josh Perez
parent 7b15bddfc9
commit a581f6ea81
13 changed files with 467 additions and 3 deletions

View file

@ -45,6 +45,7 @@ export type PropsType = {
setLocalVideo: (_: SetLocalVideoType) => void;
setLocalPreview: (_: SetLocalPreviewType) => void;
setRendererCanvas: (_: SetRendererCanvasType) => void;
togglePip: () => void;
toggleSettings: () => void;
};
@ -209,6 +210,7 @@ export class CallScreen extends React.Component<PropsType, StateType> {
hasLocalVideo,
hasRemoteVideo,
i18n,
togglePip,
toggleSettings,
} = this.props;
const { showControls } = this.state;
@ -256,6 +258,14 @@ export class CallScreen extends React.Component<PropsType, StateType> {
onClick={toggleSettings}
/>
</div>
<div className="module-ongoing-call__pip">
<button
type="button"
aria-label={i18n('calling__pip')}
className="module-ongoing-call__pip--button"
onClick={togglePip}
/>
</div>
</div>
{hasRemoteVideo
? this.renderRemoteVideo()