Commit Graph
4 Commits
Author SHA1 Message Date
ancsemi fe5ed5b8a0 Replace em dashes in client code comments and styles 2026-10-10 16:08:55 -04:00
ancsemi 0b8c04e708 Replace em dashes in the English UI text and messages 2026-10-10 16:08:54 -04:00
ancsemi 5520f72f47 Voice: tear down shares on leave without renegotiating, parallelise per-peer work (#5426)
leave() called stopScreenShare() and stopWebcam() without awaiting them, so
their renegotiations fired at peers that were closed a few lines later, and
their continuations ran up to eight seconds after the user had gone. If the
user rejoined and started a new share in that window, the stale continuation
nulled the new screenStream and flipped isScreenSharing off. Both stop
methods now take a teardown option that skips the renegotiation round and
releases the capture immediately; leave() uses it.

shareScreen, startWebcam, switchCamera and switchInputDevice awaited each
peer in turn. Each peer is an independent RTCPeerConnection, so they now run
concurrently and the last viewer no longer waits on everyone before them.

The stream debug logger kept appending peer state changes after disable(),
because its peer and screenSharers patches never checked the flag. It now
records nothing while disabled and caps the buffer at 5000 entries while
enabled.
2026-09-01 19:35:38 -04:00
ancsemi 2fe0f1c158 debug: stream-debug.js — auto-attaching WebRTC logger for diagnosing stream visibility issues 2026-04-29 14:18:12 -04:00