You can choose to play the Remote Streams in the Active Talker List with a custom-defined view by selecting activeviews : view during connect(). In this case, you don’t have to handle the UI as the pre-defined Video Grid plays all the Streams received at the Client endpoint.

When choosing this option, you can use adjustLayout() method to adjust the Video player layout to fit within its parent view. This method helps when the user rotates the screen or when the view needs to be adjusted to fit properly.

Class: EnxRoom

Method:

  • public void adjustLayout(int frameWidth, int frameHeight) 

Parameters:

  • frameWidth: Width of Framed View.
  • frameHeight: Height of Framed View.
enxRoom.adjustLayout(width,height)