Quellcode durchsuchen

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.
tags/v0.0.2
Leonard Kim vor 8 Jahren
Ursprung
Commit
c3ebc6517e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      JitsiMeetJS.js

+ 1
- 1
JitsiMeetJS.js Datei anzeigen

@@ -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
  *

Laden…
Abbrechen
Speichern