浏览代码

Skips selecting local participant when alone in the room.

master
damencho 9 年前
父节点
当前提交
f86056c4f8
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      conference.js

+ 6
- 0
conference.js 查看文件

@@ -1374,6 +1374,12 @@ export default {
1374 1374
 
1375 1375
         APP.UI.addListener(UIEvents.SELECTED_ENDPOINT, (id) => {
1376 1376
             try {
1377
+                // do not try to select participant if there is none (we are
1378
+                // alone in the room), otherwise an error will be thrown cause
1379
+                // reporting mechanism is not available (datachannels currently)
1380
+                if (room.getParticipants().length === 0)
1381
+                    return;
1382
+
1377 1383
                 room.selectParticipant(id);
1378 1384
             } catch (e) {
1379 1385
                 JitsiMeetJS.analytics.sendEvent('selectParticipant.failed');

正在加载...
取消
保存