From e9c41b1f35f7f28202822cec174cd04d28d41717 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sun, 7 Aug 2022 20:50:01 +0200 Subject: [PATCH] [mirotalksfu] - handle producer video btns --- public/js/Room.js | 5 +++++ public/js/RoomClient.js | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/js/Room.js b/public/js/Room.js index 0e3d3d0a..f30d58fa 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -50,6 +50,11 @@ const BUTTONS = { aboutButton: true, exitButton: true, }, + producerVideo: { + fullScreenButton: true, + snapShotButton: true, + muteAudioButton: true, + }, consumerVideo: { fullScreenButton: true, snapShotButton: true, diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index b48b21b1..9884222c 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -916,9 +916,9 @@ class RoomClient { pb.className = 'bar'; pb.style.height = '1%'; pm.appendChild(pb); - vb.appendChild(au); - vb.appendChild(ts); - vb.appendChild(fs); + BUTTONS.producerVideo.muteAudioButton && vb.appendChild(au); + BUTTONS.producerVideo.snapShotButton && vb.appendChild(ts); + BUTTONS.producerVideo.fullScreenButton && vb.appendChild(fs); d.appendChild(elem); d.appendChild(pm); d.appendChild(i);