twilio-video-app-android
twilio-video-app-android copied to clipboard
Camera2Capturer is not supported on this device
Describe the bug SDK crashes when trying to start a video chat. Happened with 2 devices, same error.
Device 1
Android Device (please complete the following information):
- Device: CPH1613
- API Version:
Android 6.0.1 (23)
Video Android SDK (please complete the following information):
- Version:
7.6.1
Additional context
java.lang.IllegalStateException: Camera2Capturer is not supported on this device
at com.twilio.video.Preconditions.checkState(Preconditions.java:447)
at com.twilio.video.Camera2Capturer.<init>(Camera2Capturer.java:219)
at com.twilio.video.Camera2Capturer.<init>(Camera2Capturer.java:192)
Device 2
Android Device (please complete the following information):
- Device: SM-T560NU
- API Version:
Android 7.1.1 (25)
Video Android SDK (please complete the following information):
- Version:
7.3.0
(not sure if it happens on7.6.1
)
Additional context
java.lang.IllegalStateException: Camera2Capturer is not supported on this device
at com.twilio.video.Preconditions.checkState(Preconditions.java:447)
at com.twilio.video.Camera2Capturer.<init>(Camera2Capturer.java:219)
at com.twilio.video.Camera2Capturer.<init>(Camera2Capturer.java:192)
I see in the SDK you have :
public static boolean isSupported(@NonNull Context context) { ... }
but I don't see any mention in the docs or anything.
Do we first need to check if supported? What would be the fallback if not supported?
Thank you.