maximizeUser(userId: string, tile = 'media' | 'screenshare')

Maximizes (fullscreens) the tile of a concrete user. You can specify if you want to fullscreen the media tile (video/audio) or screenshare tile of the user. If tile param is not specified, the default value is media.

//Maximizes the media tile of the user

//Maximizes the screenshare tile of the user
sambaFrame.maximizeUser('9efc7798-a1a4-44bd-9d8d-532fe0feea9d', 'screenshare');

Sample use cases:

  • Wanting to maximize (fullscreen) tile or screenshare of a concrete user

maximizeUser is often used in conjunction with the minimizeUser method.

Last updated