[mirotalksfu] - group better buttons

هذا الالتزام موجود في:
Miroslav Pejic
2022-08-07 13:44:44 +02:00
الأصل 8559536bdd
التزام d7a5cab7cb
2 ملفات معدلة مع 12 إضافات و5 حذوفات

عرض الملف

@@ -60,6 +60,13 @@ const BUTTONS = {
muteAudioButton: true, muteAudioButton: true,
ejectButton: true, ejectButton: true,
}, },
videoOff: {
sendMessageButton: true,
sendFileButton: true,
sendVideoButton: true,
muteAudioButton: true,
ejectButton: true,
},
//... //...
}; };

عرض الملف

@@ -1324,12 +1324,12 @@ class RoomClient {
pb.style.height = '1%'; pb.style.height = '1%';
pm.appendChild(pb); pm.appendChild(pb);
if (remotePeer) { if (remotePeer) {
BUTTONS.consumerVideo.ejectButton && vb.appendChild(ko); BUTTONS.videoOff.ejectButton && vb.appendChild(ko);
BUTTONS.consumerVideo.sendVideoButton && vb.appendChild(sv); BUTTONS.videoOff.sendVideoButton && vb.appendChild(sv);
BUTTONS.consumerVideo.sendFileButton && vb.appendChild(sf); BUTTONS.videoOff.sendFileButton && vb.appendChild(sf);
BUTTONS.consumerVideo.sendMessageButton && vb.appendChild(sm); BUTTONS.videoOff.sendMessageButton && vb.appendChild(sm);
} }
BUTTONS.consumerVideo.muteAudioButton && vb.appendChild(au); BUTTONS.videoOff.muteAudioButton && vb.appendChild(au);
d.appendChild(i); d.appendChild(i);
d.appendChild(p); d.appendChild(p);
d.appendChild(h); d.appendChild(h);