pin
This method can be used to pin this participant's camera and/or screen-share stream.
Pinned participants are given priority in layouts and will remain visible regardless of active speaker changes.
Events:
- onPinStateChanged — triggered for all participants when the pin state changes
Code Example:
// Pin both camera and screen-share
participant.pin("SHARE_AND_CAM")
// Pin only camera
participant.pin("CAM")
// Pin only screen-share
participant.pin("SHARE")
Content copied to clipboard
Parameters
type
The pin type: "SHARE_AND_CAM", "CAM", or "SHARE". If null, defaults to "SHARE_AND_CAM".
See also
MeetingEventListener.onPinStateChanged()
Throws
if an unknown pin type is provided