Browse Source

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.
dev1
Leonard Kim 8 years ago
parent
commit
c3ebc6517e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      JitsiMeetJS.js

+ 1
- 1
JitsiMeetJS.js View File

@@ -33,7 +33,7 @@ const logger = Logger.getLogger(__filename);
33 33
 
34 34
 // The amount of time to wait until firing
35 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…
Cancel
Save