Force Speaker view/Gallery view on client side by host control

Hello,
we are using gallery view with the Android SDK. However, sometimes we need to show the host video in full size. Is there a possibility to control the client’s view from the host? I understand there is spotlighting, but that will only put a highlighted frame around the spotlighted video in gallery view and not make it full size.

Thanks,
Florian

Hi @florian.burg, thanks for using our SDK.

Assuming you are using the default meeting UI, this can be done in one of two ways:

  • Programmatically by calling switchToActiveSpeaker
  • Swiping left-to-right between the available modes (the options are driving mode, gallery, and active speaker)

Thanks!

Thanks, Jon. What is the easiest way back to the gallery view then? Something like switchToNextPage(), where the gallery view is next in line after the speaker view?

Regards,
Florian

Hi @florian.burg,

The ZoomUIService class also contains a method for switching to gallery view. Apologies if the naming of that method is not extremely obvious, but that should do the trick for you. :slightly_smiling_face:

Alternatively, it is possible to navigate between the different types of views with the switchToNextPage method you’ve mentioned. The drawback of this approach is that you would need to find a way to manage the state of which view is currently visible within your app.

Thanks!

Hi @jon.zoom, Is there a method to get the current view mode? To know if it is currently in the speaker or gallery view.

Hi @deena.qb,

There is currently no way to query the current view mode, aside from looking at the UI. You can, however, programmatically swap between view modes in the default UI with the ZoomUIService class.

Thanks!