1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Add a comment about when it is possible to screenshare

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-05-10 14:42:06 +02:00
parent 90f4ad7a83
commit acd0fa4c0e

View File

@@ -505,6 +505,9 @@ export default class CallView extends React.Component<IProps, IState> {
/> : null;
let screensharingButton;
// Screensharing is possible, if we can send a second stream and identify
// it using SDPStreamMetadata or if we can replace the already existing
// usermedia track by a screensharing track
if (this.props.call.opponentSupportsSDPStreamMetadata() || this.props.call.type === CallType.Video) {
screensharingButton = (
<AccessibleButton