Test screen sharing again after someone cancels the browser prompt
Test a canceled screen-share permission prompt as its own outcome. A cancel should not be reported as a published screen, and the user should get a clear way to try again. Check the exact LiveKit client version and rerun the test after upgrades; a previously reported React-components issue was fixed upstream in a pull request.
What you need
For a product or support-team lead validating screen sharing in a LiveKit-based on-screen assistance session.
- The deployed LiveKit client and component versions.
- A browser test account and a session with no customer or sensitive screen content.
- Logs for permission errors and screen-track publication state.
Confirm that canceling browser capture permission does not leave the screen-share control stuck.
- Start a test room and choose the screen-share control.
- Cancel the browser’s screen-selection prompt. Confirm the UI shows that sharing did not start and no screen track is published.
- Try the share control again. Check whether the browser presents a new selection prompt and whether the UI recovers without misleading success.
- Repeat on the supported browsers and current deployed version. If retry fails, capture the version and sanitized event trace, then compare with the upstream fix and release notes.
Cancel is a valid test outcome
Synthetic acceptance results. The source issue reported livekit-client 2.8.0 and @livekit/components-react 2.6.10; confirm behavior on your actual deployed versions.
Scroll the table to see all columns.
| Step | Expected result | Observed | Decision |
|---|---|---|---|
| First prompt cancelled | No screen track; clear retry option | No track, retry shown | Pass |
| Second attempt | New screen chooser appears | Prompt appears | Pass |
| Choose a test window | Track publishes and preview appears | Track and preview visible | Pass |
| Stop sharing | Track ends and UI clears | Track ended | Pass |
The test passes only if the first cancellation is treated as cancellation and the second attempt can start a fresh capture. This example is not a claim about every current browser or SDK version.
What to hand over
A version-stamped acceptance result for cancel, retry, successful publish and visible stop state.
Limitation. Browser permission prompts and capture behavior vary by browser and operating system. The linked issue concerns specific historical LiveKit component versions and is marked fixed upstream.
Next step
Bring the client versions, supported browser list and a sanitized cancel-and-retry trace.
Related guides
Sources
- LiveKit Docs: Screen sharing (accessed 24 November 2026)
- LiveKit Components: Screen-share prompt canceled issue (opened 23 January 2025; accessed 24 November 2026)
- LiveKit Client SDK: Fix for removing pending screen track on device errors (merged 23 January 2025; accessed 24 November 2026)