unpin method

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

Unpins the participant’s media streams.

  • This method allows you to unpin the participant’s camera stream, screen-share stream, or both. Unpinning removes the participant’s media from the pinned state in the UI layout.

Parameters

Returns

  • void

Example

// Unpin only the participant's camera
participant.unpin(PinType.CAM);

// Unpin both camera and screen share (default)
participant.unpin();

Implementation

unpin([PinType pinType = PinType.SHARE_AND_CAM]) => _unpin(pinType);