From 4913870177c537ac4f912e44da1addfac0860095 Mon Sep 17 00:00:00 2001
From: Niklas Gruhn
Date: Fri, 22 May 2020 17:29:07 +0200
Subject: [PATCH] fix(@init): capabilities empty on some devices
According to
https://oberhofer.co/mediastreamtrack-and-its-capabilities/#queryingcapabilities
on some devices, getCapabilities only returns a non-empty object
aftersome delay. There is no appropriate event so we have to add
some constant timeout.
---
demo.html | 7 +++++--
src/misc/camera.js | 15 ++++++++++-----
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/demo.html b/demo.html
index 03f5164a..149d6bbb 100644
--- a/demo.html
+++ b/demo.html
@@ -33,7 +33,9 @@
{{ errorMessage }}