unpin
This method can be used to unpin this participant's camera and/or screen-share stream.
Events:
- onPinStateChanged — triggered for all participants when the pin state changes
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")
Content copied to clipboard
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