docs: Add comment for initial GUM timeout values.

This commit is contained in:
Hristo Terezov 2021-02-08 15:10:24 -06:00
parent 7dc899ace1
commit 299927fcad
1 changed files with 3 additions and 0 deletions

View File

@ -504,6 +504,9 @@ export default {
let tryCreateLocalTracks; let tryCreateLocalTracks;
// On Electron there is no permission prompt for granting permissions. That's why we don't need to
// spend much time displaying the overlay screen. If GUM is not resolved withing 15 seconds it will
// probably never resolve.
const timeout = browser.isElectron() ? 15000 : 60000; const timeout = browser.isElectron() ? 15000 : 60000;
// FIXME is there any simpler way to rewrite this spaghetti below ? // FIXME is there any simpler way to rewrite this spaghetti below ?