From f4a56c437a432a0af3a4852442477ac96eb5dc8c Mon Sep 17 00:00:00 2001 From: kNoAPP Date: Thu, 18 Jul 2024 12:00:30 -0700 Subject: [PATCH] fix: missing streamCompleter complete for getUserMedia --- lib/src/mediadevices_impl.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/mediadevices_impl.dart b/lib/src/mediadevices_impl.dart index 5051c96..52a1c03 100644 --- a/lib/src/mediadevices_impl.dart +++ b/lib/src/mediadevices_impl.dart @@ -66,7 +66,9 @@ class MediaDevicesWeb extends MediaDevices { audio: mediaConstraints['audio'], video: mediaConstraints['video'], ), - (web.MediaStream stream) {}.toJS, + (web.MediaStream stream) { + streamCompleter.complete(stream); + }.toJS, (JSAny err) { streamCompleter.completeError(err); }.toJS);