Skip to content

Commit 58a1e42

Browse files
authored
Merge pull request #7 from flutter-webrtc/dl/ondevicechangewq
Add ondevicechange property to MediaDevices
2 parents ea624dd + 5b07be4 commit 58a1e42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/mediadevices.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ abstract class MediaDevices {
114114
MediaTrackSupportedConstraints getSupportedConstraints() {
115115
throw UnimplementedError();
116116
}
117+
118+
/// A function you provide which accepts as input a Event object describing
119+
/// the devicechange event that occurred. There is no information about the
120+
/// change included in the event object; to get the updated list of devices,
121+
/// you'll have to use enumerateDevices().
122+
Function(dynamic event)? ondevicechange;
117123
}
118124

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

0 commit comments

Comments
 (0)