As the documentation says checkVideoRotation to be used in onResume but how to use that when an app is in the background?
For example, I was using the custom UI and using the checkVideoRotation method to configure the orientation(https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/inmeetingfunction/customizedmeetingui/video/MeetingVideoHelper.java#L47 )
Display display = ((WindowManager) context.getSystemService(Service.WINDOW_SERVICE)).getDefaultDisplay(); int displayRotation = display.getRotation(); mInMeetingVideoController.rotateMyVideo(displayRotation);
This is working perfectly when the app is in the foreground. But when the user goes to the background and starts rotating the device then this method is not working even though we forcefully call that from some timer task or senior manager for getting events.
Is there any possibility to use checkVideoRotation to set the camera orientation when the app is in the background?
- Devices used for testing are OnePlus6, Pixel 2
- OS: Android 10,11
The orientation of the camera when the app is in the background while using Custom UI