unpin method
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
-
pinType(optional): Specifies which media stream to unpin. Defaults to PinType.SHARE_AND_CAM.Possible values:
- PinType.SHARE_AND_CAM: Unpins both camera and screen-share streams
- PinType.CAM: Unpins only the camera stream
- PinType.SHARE: Unpins only the screen-share stream
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);