mirror of https://github.com/vector-im/riot-web
shift-click the video button to screenshare rather than overriding the button entirely.
parent
8ff7d87b38
commit
98ea35253a
|
@ -158,6 +158,12 @@ function _onAction(payload) {
|
||||||
newCall.placeVoiceCall();
|
newCall.placeVoiceCall();
|
||||||
}
|
}
|
||||||
else if (payload.type === 'video') {
|
else if (payload.type === 'video') {
|
||||||
|
newCall.placeVideoCall(
|
||||||
|
payload.remote_element,
|
||||||
|
payload.local_element
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else if (payload.type === 'screensharing') {
|
||||||
newCall.placeScreenSharingCall(
|
newCall.placeScreenSharingCall(
|
||||||
payload.remote_element,
|
payload.remote_element,
|
||||||
payload.local_element
|
payload.local_element
|
||||||
|
|
|
@ -69,10 +69,10 @@ module.exports = {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onVideoClick: function() {
|
onVideoClick: function(e) {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'place_call',
|
action: 'place_call',
|
||||||
type: "video",
|
type: e.shiftKey ? "screensharing" : "video",
|
||||||
room_id: this.props.room.roomId
|
room_id: this.props.room.roomId
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue