pin
Pins this participant so every device in the room sees them promoted.
The pin is room-wide state, not a local layout choice: it is your UI's job to honour it. Works on the local participant too.
Events:
RoomEventListener.onPinStateChanged — emitted on all participants, the local one included
Parameters
pin Type
which streams to pin. Defaults to PinType.SHARE_AND_CAM.
See also
Throws
code 4071 (PIN_FAILED) if the server refuses.