[mirotalksfu] - fix UI on screen share
هذا الالتزام موجود في:
@@ -512,7 +512,7 @@ io.on('connection', (socket) => {
|
||||
socket.on('updatePeerInfo', (data) => {
|
||||
if (!roomList.has(socket.room_id)) return;
|
||||
|
||||
// peer_info hand raise Or lower
|
||||
// update my peer_info status to all in the room
|
||||
roomList.get(socket.room_id).getPeers().get(socket.id).updatePeerInfo(data);
|
||||
roomList.get(socket.room_id).broadCast(socket.id, 'updatePeerInfo', data);
|
||||
});
|
||||
|
||||
@@ -960,12 +960,7 @@ class RoomClient {
|
||||
this.handlePN(elem.id, pn.id, d.id, isScreen);
|
||||
this.popupPeerInfo(p.id, this.peer_info);
|
||||
this.checkPeerInfoStatus(this.peer_info);
|
||||
if (participantsCount <= 3 && type === mediaType.screen) {
|
||||
this.peerAction('me', this.peer_id + '___sStart', 'screenStart', true, true, false);
|
||||
setAspectRatio(2); // 16:9
|
||||
} else {
|
||||
handleAspectRatio();
|
||||
}
|
||||
handleAspectRatio();
|
||||
if (!this.isMobileDevice) {
|
||||
this.setTippy(pn.id, 'Toggle Pin', 'top-end');
|
||||
this.setTippy(ts.id, 'Snapshot', 'top-end');
|
||||
@@ -3339,10 +3334,7 @@ class RoomClient {
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 'screenStart':
|
||||
if (!this.isMobileDevice) setAspectRatio(2);
|
||||
break;
|
||||
// ...
|
||||
//...
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3463,11 +3455,7 @@ class RoomClient {
|
||||
if (muteHideConfirmed) this.peerActionProgress(action, 'In progress, wait...', 2000, 'refresh');
|
||||
});
|
||||
break;
|
||||
case 'screenStart':
|
||||
setTimeout(() => {
|
||||
this.socket.emit('peerAction', data);
|
||||
}, 1000);
|
||||
break;
|
||||
//...
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم