Switching view layouts in Meeting

Subject: Issue with switching view layouts in Meeting with ZRCSDK (Linux)

Hello Zoom Team,

I am working with the Zoom Room Control SDK (ZRCSDK) on Linux. Most features are working well, but I am running into an issue with starting Cloud Recording.
I am using the function:

I am facing problem to switch to the different views that is Speaker, Thumbnail, gallery, Multispeaker

for this i am using IMeetingViewLayoutHelper.h

and this function
virtual ZRCSDKError UpdateVideoLayoutStyle(VideoLayoutStyle style) = 0;

enum VideoLayoutStyle
{
VideoLayoutStyleUnknown = 0, ///<Unknown
VideoLayoutStyleGallery = 1, ///<Gallery View layout
VideoLayoutStyleSpeaker = 2, ///<Speaker View layout
VideoLayoutStyleThumbnail = 3, ///<Thumbnail View layout
VideoLayoutStyleContentOnly = 4, ///<Content only layout, all screens show shared content
VideoLayoutStyleCancelContentOnly = 5, ///<Cancel content only layout.
VideoLayoutStyleDynamicLayout = 6, ///<Dynamic View layout
};

The API returns ZRCSDKERR_SUCCESS, but the meeting view does not actually change.
When using the Zoom native application, switching layouts works as expected.

Queries :-

  1. Can the view be switched directly with a single call to UpdateVideoLayoutStyle()?
  2. Or is there a required sequence/workflow of calling multiple functions calling one after another?
  3. A sample C++ code snippet demonstrating the correct workflow would be highly appreciated.