Skip to content

Commit

Permalink
Merge pull request #47 from kNoAPP/kNoAPP/streamCompleterFix
Browse files Browse the repository at this point in the history
fix: missing streamCompleter complete for getUserMedia
  • Loading branch information
cloudwebrtc authored Jul 19, 2024
2 parents 7c11f62 + f4a56c4 commit bbe2497
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 bbe2497

Please sign in to comment.