8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47b0134 commit 1ed16f9Copy full SHA for 1ed16f9
android/src/main/java/com/cloudwebrtc/webrtc/GetUserMediaImpl.java
@@ -279,7 +279,13 @@ private VideoCapturer createVideoCapturer(
279
}
280
281
282
- // should we fallback to available camera automatically?
+
283
+ // falling back to the first available camera
284
+ if (videoCapturer == null && deviceNames.length > 0){
285
+ videoCapturer = enumerator.createCapturer(deviceNames[0], new CameraEventsHandler());
286
+ Log.d(TAG, "Falling back to the first available camera");
287
+ }
288
289
return videoCapturer;
290
291
0 commit comments