I wanted to control orientation of the MeetingActivity programatically either make it use fixed orientation or control it via a button overlayed over the Meeting UI.
So i extended MeetingActivity class and than added overlayed button & relevant code which ultimately calls: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
No matter what, setRequestedOrientation never works. You set it in onCreate, you set it in onconfigurationchanged or you set it when button is clicked, it never works. Only time orientation change works is when a static orientation (portrait or landscape) is set via Manifest. But manifest provides no flexibility.
Please fix this issue.
Which Android Meeting SDK version?
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Add a UI Button clicking on which calls setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
- Orientation won’t change to landscape
Smartphone (please complete the following information):
- Device: Redmi Note 10 Pro
- OS: Android 12