Skip to content

Commit

Permalink
Merge pull request #7 from flutter-webrtc/dl/ondevicechangewq
Browse files Browse the repository at this point in the history
Add ondevicechange property to MediaDevices
  • Loading branch information
cloudwebrtc committed Aug 2, 2022
2 parents ea624dd + 5b07be4 commit 58a1e42
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/mediadevices.dart
Expand Up @@ -114,6 +114,12 @@ abstract class MediaDevices {
MediaTrackSupportedConstraints getSupportedConstraints() {
throw UnimplementedError();
}

/// A function you provide which accepts as input a Event object describing
/// the devicechange event that occurred. There is no information about the
/// change included in the event object; to get the updated list of devices,
/// you'll have to use enumerateDevices().
Function(dynamic event)? ondevicechange;
}

/// This describe the media input and output devices, such as microphones,
Expand Down

0 comments on commit 58a1e42

Please sign in to comment.