Browse Source

Fixes stopping desktop sharing when changing video device to use.

j8
damencho 8 years ago
parent
commit
7f7200b599
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      conference.js

+ 8
- 1
conference.js View File

2195
                     return stream;
2195
                     return stream;
2196
                 })
2196
                 })
2197
                 .then(stream => {
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
                     logger.log('switched local video device');
2206
                     logger.log('switched local video device');
2200
                     APP.settings.setCameraDeviceId(cameraDeviceId, true);
2207
                     APP.settings.setCameraDeviceId(cameraDeviceId, true);
2201
                 })
2208
                 })

Loading…
Cancel
Save