Skip to content

Confirm the screen-share track returns after reconnect

First confirm whether the room resumed the old connection or performed a full reconnect. During a full reconnect, LiveKit documents a sequence in which local tracks are republished. Test the screen-share publication and remote subscription separately, show a clear interrupted state, and verify consent before capture continues. Do not mark the screen as shared just because the participant rejoined.

What you need

For an engineer or product owner testing screen assistance when a LiveKit participant loses and restores a room connection.

  • LiveKit SDK and app versions, room logs and network-switch test case.
  • A participant-approved screen-share session with a harmless test page.
  • Room events and track source, publication and subscription state.
  • The expected user interface and screen-share consent behavior.

Verify the screen-share capture, publication and remote display after a reconnect

  1. Start a consented test share and record the participant identity, screen source and remote subscriber state.
  2. Trigger a short network interruption and note whether the SDK resumes the connection or reports a full reconnect.
  3. During reconnection, show that the screen view is interrupted; do not leave a stale frame marked live.
  4. After reconnect, inspect the participant and local track publication events, then verify the remote screen track is subscribed and frames arrive.
  5. Confirm the correct participant and screen source are still selected; clear stale track IDs or UI references as needed.
  6. Verify the app’s consent policy before resuming screen capture, then stop sharing and check the UI clears.

Do not confuse “participant rejoined” with “screen is visible”

Synthetic event trace. It illustrates the separate checks and does not claim a LiveKit bug.

Scroll the table to see all columns.

Synthetic screen-share reconnect check
TimeRoom eventScreen publicationRemote displayDecision
10:00ConnectedScreenShare publishedFrames visibleShare is active
10:05ReconnectingConnection interruptedShow reconnect stateDo not claim live view
10:05:08Reconnected; participant connectedNew publication event observedSubscription not yet confirmedKeep interruption state
10:05:10Track subscribedScreenShare source confirmedNew frames receivedMark live after consent check
10:08Participant stops shareTrack unpublishedScreen view removedClear live indicator

The screen is marked live only after the remote subscriber receives the republished screen track. If the publication or subscription event is missing, keep the case open.

What to hand over

A reconnect acceptance record with reconnect type, event sequence, screen publication, remote subscription, consent state, visible interruption and stop result.

Limitation. Exact reconnect and republish behavior depends on the SDK version, platform and whether the connection resumes or fully reconnects. A local publication event alone does not prove the remote viewer receives frames.

Next step

Bring the SDK version, reconnect logs and consent flow. Agree which event proves capture, which proves remote display and how the interface shows interruption.

Discuss a LiveKit screen-assistance workflow

Sources