瀏覽代碼

Fixes stopping desktop sharing when changing video device to use.

j8
damencho 8 年之前
父節點
當前提交
7f7200b599
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. 8
    1
      conference.js

+ 8
- 1
conference.js 查看文件

@@ -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
                 })

Loading…
取消
儲存