pin method

Future<void> 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

  • A Future<void> that completes once the native SDK accepts the request, or throws a VideoSDKError carrying its code and name.

Example

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

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

Implementation

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