unpin

@Async
fun unpin(type: String)

This method can be used to unpin this participant's camera and/or screen-share stream.

Events:

Code Example:


// Unpin both camera and screen-share
participant.unpin("SHARE_AND_CAM")

// Unpin only camera
participant.unpin("CAM")

// Unpin only screen-share
participant.unpin("SHARE")

Parameters

type

The unpin type: "SHARE_AND_CAM", "CAM", or "SHARE". If null, defaults to "SHARE_AND_CAM".

See also

MeetingEventListener.onPinStateChanged()

Throws

if an unknown unpin type is provided