Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
c3ebc6517e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      JitsiMeetJS.js

+ 1
- 1
JitsiMeetJS.js Näytä tiedosto

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…
Peruuta
Tallenna