Preview video render stops working after switchToNextCamera

I am working on an app with full customized UI following the Android Sample app in SDK
Everything is working fine except the preview video render. It stops working after calling switchToNextCamera.

I does not happen in Sample app but I do not see any evident differences between Zoom sdk usage of my application and Sample app with Customized UI. The only difference is that my custom meeting activity is not hosting directly the MobileRTCVideoView component but it contains an androidx.viewpager2.widget.ViewPager2 that loads specific fragments hosting the MobileRTCVideoView components.

I checked the return value of switchToNextCamera and it is “true”

The issue looks similar to

How can I investigate this kind of issue?
Can I provide you some logs that could be useful for understand what is happening?

I am using SDK version v5.0.24433.0616
The issue does not look related to a specific device or a specific version of the Android OS.

Hi @criva,

Thank you for the post. Please try not to switch the camera while in the preview stage. We will enhance this case in future releases.

Thanks!