[mirotalksfu] - adapt aspect ratio

هذا الالتزام موجود في:
Miroslav Pejic
2022-02-18 21:00:09 +01:00
الأصل ec6acfe2d9
التزام 4855e15b79
3 ملفات معدلة مع 65 إضافات و3 حذوفات

عرض الملف

@@ -227,6 +227,7 @@ class RoomClient {
async handleRoomInfo(room) {
let peers = new Map(JSON.parse(room.peers));
participantsCount = peers.size;
adaptAspectRatio(participantsCount);
for (let peer of Array.from(peers.keys()).filter((id) => id !== this.peer_id)) {
let peer_info = peers.get(peer).peer_info;
// console.log('07 ----> Remote Peer info', peer_info);
@@ -409,6 +410,7 @@ class RoomClient {
console.log('Remove me:', data);
this.removeVideoOff(data.peer_id);
participantsCount = data.peer_counts;
adaptAspectRatio(participantsCount);
}.bind(this),
);
@@ -417,6 +419,7 @@ class RoomClient {
function (data) {
console.log('Participants Count:', data);
participantsCount = data.peer_counts;
adaptAspectRatio(participantsCount);
}.bind(this),
);