8000 Use enumerateDevices instead of getSources. · next-coder/flutter-webrtc@128f313 · GitHub
[go: up one dir, main page]

Skip to content

Commit 128f313

Browse files
committed
Use enumerateDevices instead of getSources.
1 parent c1d74cc commit 128f313

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dev_dependencies:
2020
flutter_test:
2121
sdk: flutter
2222

23-
pedantic: ^1.9.0
23+
pedantic: ^1.11.0
2424

2525
# For information on the generic Dart part of this file, see the
2626
# following page: https://www.dartlang.org/tools/pub/pubspec

lib/src/native/navigator_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class NavigatorNative extends Navigator {
1111

1212
@override
1313
Future<List> getSources() {
14-
return mediaDevices.getSources();
14+
return mediaDevices.enumerateDevices();
1515
}
1616

1717
@override

lib/src/web/navigator_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class NavigatorWeb extends Navigator {
1111

1212
@override
1313
Future<List> getSources() {
14-
return mediaDevices.getSources();
14+
return mediaDevices.enumerateDevices();
1515
}
1616

1717
@override

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
dev_dependencies:
1414
flutter_test:
1515
sdk: flutter
16-
pedantic: ^1.9.0
16+
pedantic: ^1.11.0
1717
test:
1818

1919
flutter:

0 commit comments

Comments
 (0)
0