Skip to content

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.

  1. Start a test room and choose the screen-share control.
  2. Cancel the browser’s screen-selection prompt. Confirm the UI shows that sharing did not start and no screen track is published.
  3. Try the share control again. Check whether the browser presents a new selection prompt and whether the UI recovers without misleading success.
  4. 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.

Screen-share retry test
StepExpected resultObservedDecision
First prompt cancelledNo screen track; clear retry optionNo track, retry shownPass
Second attemptNew screen chooser appearsPrompt appearsPass
Choose a test windowTrack publishes and preview appearsTrack and preview visiblePass
Stop sharingTrack ends and UI clearsTrack endedPass

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.

Discuss this workflow with Shadyy

Sources