Skip to content

Commit

Permalink
fix: missing streamCompleter complete for getUserMedia
Browse files Browse the repository at this point in the history
  • Loading branch information
kNoAPP committed Jul 18, 2024
1 parent 7c11f62 commit f4a56c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/mediadevices_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f4a56c4

Please sign in to comment.