pin

@Async
fun pin(type: String)

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:

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")

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