Configuring 5x5 in a gallery layout


BlueJeans SDK provides a parameter to turn on 5x5 gallery layouts - the default gallery layout has been set to 3x3. 5x5 works well on most iOS devices that support iOS 8 or higher, but developers may want to consider limiting 5x5 on older devices if needed.

BlueJeansSDKInitParams is used as a parameter of the BlueJeansSDK.initialize method. This method is used to change the configurable behavior and UX of the SDK.

Note:

The call to initialize must be made before any services of the BlueJeansSDK are accessed.

If set to true, then in `.gallery` videoLayout, there will be a maximum of 5x5 (landscape) or 8x3 (portrait) videos in a grid. Otherwise, there will be a maximum of 3x3 (landscape) or 4x2 (portrait) videos. Recommended to be set to `true` only on newer devices, and those with larger screens.

Note

Using 5x5 will consume higher memory, CPU, and battery as compared to other layouts.

By default, 3x3 is the selected video layout supported in the gallery view. However, if the use case is to support more than 9 video participants, BlueJeans provides the option to scale the layout to 5x5, which is applicable when launching the SDK.

var initParams = BlueJeansSDKInitParams(is5x5GalleryLayoutEnabled: true)

If you want to configure back to 3x3, use the following command

var initParams = BlueJeansSDKInitParams(is5x5GalleryLayoutEnabled: false)