twilio-video-app-android icon indicating copy to clipboard operation
twilio-video-app-android copied to clipboard

Camera2Capturer is not supported on this device

Open SebPawp opened this issue 1 year ago • 0 comments

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 on 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)

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.

SebPawp avatar Jun 14 '23 21:06 SebPawp