Skip to navigation

stopScreenShare

View as MarkdownOpen in Claude
stopScreenShare(): Promise<void>

Stops the current screen share. Safe to call when no share is active or while one is already stopping — it returns without sending a second teardown.

Stopping a share whose leg has not finished connecting rejects the pending startScreenShare call with AuxiliaryLegCancelledError, so the caller can tell a cancel apart from a share that actually came up.

Returns

Promise<void>

Examples

await selfParticipant.stopScreenShare();

See