Pārlūkot izejas kodu

Fixes stopping desktop sharing when changing video device to use.

j8
damencho 8 gadus atpakaļ
vecāks
revīzija
7f7200b599
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8
    1
      conference.js

+ 8
- 1
conference.js Parādīt failu

@@ -2195,7 +2195,14 @@ export default {
2195 2195
                     return stream;
2196 2196
                 })
2197 2197
                 .then(stream => {
2198
-                    this.useVideoStream(stream);
2198
+                    // if we are screen sharing we do not want to stop it
2199
+                    if (this.isSharingScreen) {
2200
+                        return Promise.resolve();
2201
+                    }
2202
+
2203
+                    return this.useVideoStream(stream);
2204
+                })
2205
+                .then(() => {
2199 2206
                     logger.log('switched local video device');
2200 2207
                     APP.settings.setCameraDeviceId(cameraDeviceId, true);
2201 2208
                 })

Notiek ielāde…
Atcelt
Saglabāt