Calling: Picture-in-picture
This commit is contained in:
parent
7b15bddfc9
commit
a581f6ea81
13 changed files with 467 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue