瀏覽代碼

fix(permission-prompt): increase timeout for displaying permission prompt

Firefox's getUserMedia can take longer than 500ms to complete. This
causes the permission prompt timeout to fire even if the user has
given permission to audio and video. There may not be a reliable
way right now to check if the user has given permission to both
audio and video so dumbly increase the timeout instead.
master
Leonard Kim 8 年之前
父節點
當前提交
c3ebc6517e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      JitsiMeetJS.js

+ 1
- 1
JitsiMeetJS.js 查看文件

33
 
33
 
34
 // The amount of time to wait until firing
34
 // The amount of time to wait until firing
35
 // JitsiMediaDevicesEvents.PERMISSION_PROMPT_IS_SHOWN event
35
 // JitsiMediaDevicesEvents.PERMISSION_PROMPT_IS_SHOWN event
36
-const USER_MEDIA_PERMISSION_PROMPT_TIMEOUT = 500;
36
+const USER_MEDIA_PERMISSION_PROMPT_TIMEOUT = 1000;
37
 
37
 
38
 /**
38
 /**
39
  *
39
  *

Loading…
取消
儲存