You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Add presenting text
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -708,12 +708,28 @@ export default class CallView extends React.Component<IProps, IState> {
|
||||
mx_CallView_video: true,
|
||||
});
|
||||
|
||||
let presenting;
|
||||
if (this.state.primaryFeed?.purpose === SDPStreamMetadataPurpose.Screenshare) {
|
||||
const presentingClasses = classNames({
|
||||
mx_CallView_presenting: true,
|
||||
mx_CallView_presenting_hidden: !this.state.controlsVisible,
|
||||
});
|
||||
const sharerName = this.state.primaryFeed.getMember().name;
|
||||
|
||||
presenting = (
|
||||
<div className={presentingClasses}>
|
||||
{ _t('%(sharerName)s is presenting', {sharerName}) }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
contentView = (
|
||||
<div
|
||||
className={containerClasses}
|
||||
ref={this.contentRef}
|
||||
onMouseMove={this.onMouseMove}
|
||||
>
|
||||
{ presenting }
|
||||
{ sidebar }
|
||||
<VideoFeed
|
||||
feed={this.state.primaryFeed}
|
||||
|
||||
Reference in New Issue
Block a user