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);