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