Parcourir la source

fix(conference): do not mute when screen sharing

Screen sharing video should not be muted if video input device is
disconnected.
j8
paweldomas il y a 7 ans
Parent
révision
6655ae5a84
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4
    3
      conference.js

+ 4
- 3
conference.js Voir le fichier

@@ -2018,9 +2018,10 @@ export default {
2018 2018
 
2019 2019
                     // If video was muted before, or we unplugged current device
2020 2020
                     // and selected new one, then mute new video track.
2021
-                    if (videoWasMuted ||
2022
-                        currentDevices.videoinput.length >
2023
-                        availableVideoInputDevices.length) {
2021
+                    if (!this.isSharingScreen &&
2022
+                        (videoWasMuted ||
2023
+                            currentDevices.videoinput.length >
2024
+                                availableVideoInputDevices.length)) {
2024 2025
                         muteLocalVideo(true);
2025 2026
                     }
2026 2027
                 }));

Chargement…
Annuler
Enregistrer