pin method

dynamic pin([
  1. PinType pinType = PinType.SHARE_AND_CAM
])

Pins the participant’s media streams.

  • This method allows you to pin the participant’s camera stream, screen-share stream, or both. Pinning a participant ensures that their selected media remains in focus (for example, in the UI layout).

Parameters

Returns

  • void

Example

// Pin only the participant's camera
participant.pin(PinType.CAM);

// Pin both camera and screen share (default)
participant.pin();

Implementation

pin([PinType pinType = PinType.SHARE_AND_CAM]) => _pin(pinType);