Programatically setting Orientaition in Extended MeetingActivity not working

Description
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?
Latest (v5.11.3.7251)

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Add a UI Button clicking on which calls setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE)
  2. Orientation won’t change to landscape

Smartphone (please complete the following information):

  • Device: Redmi Note 10 Pro
  • OS: Android 12

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.