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
- Start a consented test share and record the participant identity, screen source and remote subscriber state.
- Trigger a short network interruption and note whether the SDK resumes the connection or reports a full reconnect.
- During reconnection, show that the screen view is interrupted; do not leave a stale frame marked live.
- After reconnect, inspect the participant and local track publication events, then verify the remote screen track is subscribed and frames arrive.
- Confirm the correct participant and screen source are still selected; clear stale track IDs or UI references as needed.
- 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.
| Time | Room event | Screen publication | Remote display | Decision |
|---|---|---|---|---|
| 10:00 | Connected | ScreenShare published | Frames visible | Share is active |
| 10:05 | Reconnecting | Connection interrupted | Show reconnect state | Do not claim live view |
| 10:05:08 | Reconnected; participant connected | New publication event observed | Subscription not yet confirmed | Keep interruption state |
| 10:05:10 | Track subscribed | ScreenShare source confirmed | New frames received | Mark live after consent check |
| 10:08 | Participant stops share | Track unpublished | Screen view removed | Clear 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.
Related guides
Sources
- LiveKit Docs: Connecting and reconnecting to a room (accessed 24 November 2026)
- LiveKit Docs: Track management and subscriptions (accessed 24 November 2026)
- LiveKit Docs: Screen sharing (accessed 24 November 2026)