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

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

//Pins the media tile of the user

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

Sample use cases:

  • Wanting to pin tile or screenshare of a concrete user

pinUser is often used in conjunction with the unpinUser method.

Last updated