[mirotalksfu] - handle producer video btns

هذا الالتزام موجود في:
Miroslav Pejic
2022-08-07 20:50:01 +02:00
الأصل d7a5cab7cb
التزام e9c41b1f35
2 ملفات معدلة مع 8 إضافات و3 حذوفات

عرض الملف

@@ -50,6 +50,11 @@ const BUTTONS = {
aboutButton: true, aboutButton: true,
exitButton: true, exitButton: true,
}, },
producerVideo: {
fullScreenButton: true,
snapShotButton: true,
muteAudioButton: true,
},
consumerVideo: { consumerVideo: {
fullScreenButton: true, fullScreenButton: true,
snapShotButton: true, snapShotButton: true,

عرض الملف

@@ -916,9 +916,9 @@ class RoomClient {
pb.className = 'bar'; pb.className = 'bar';
pb.style.height = '1%'; pb.style.height = '1%';
pm.appendChild(pb); pm.appendChild(pb);
vb.appendChild(au); BUTTONS.producerVideo.muteAudioButton && vb.appendChild(au);
vb.appendChild(ts); BUTTONS.producerVideo.snapShotButton && vb.appendChild(ts);
vb.appendChild(fs); BUTTONS.producerVideo.fullScreenButton && vb.appendChild(fs);
d.appendChild(elem); d.appendChild(elem);
d.appendChild(pm); d.appendChild(pm);
d.appendChild(i); d.appendChild(i);