Show the trainer the right person’s screen
Identify the intended participant and screen-share track explicitly. Do not choose the first available video track or assume every video source is a screen. Test join order, track publication, unsubscribe and replacement before a training pilot.
What you need
For a training or support-session owner building a LiveKit room where an AI employee should assist from one approved screen.
- The participant identity authorized to share and the role of the intended trainer.
- Track identity, source, publication and subscription events from a synthetic or permitted test room.
- A rule for what the assistant does when the expected track is missing, muted or replaced.
Select and verify the intended participant’s screen-share track while preserving consent boundaries.
- Record the expected participant identity and screen-share source before the session.
- List the room’s published tracks and distinguish screen-share video from camera video and screen-share audio.
- Subscribe only to the approved participant and source; test when another participant publishes a screen.
- Verify the selected track after reconnect, mute, unpublish and republish events.
- If identity or source is ambiguous, show no screen-derived hint and ask the trainer to confirm.
Two video tracks are not two approved screens
Synthetic room state for a training rehearsal; no real participant or room data.
Scroll the table to see all columns.
| Participant | Track source | Published | Consent for screen assistance | Expected action |
|---|---|---|---|---|
| trainer-7 | ScreenShare | Yes | Yes | Select for trainer view |
| learner-2 | Camera | Yes | No screen consent | Ignore |
| learner-2 | ScreenShare | Yes | No | Do not select; request trainer confirmation |
| trainer-7 | Camera | Yes | Not relevant | Ignore |
Only the trainer’s ScreenShare track meets both the identity and consent conditions. The learner’s screen share is excluded even though it is also a ScreenShare track.
What to hand over
A small track-selection test log showing participant, track source, event, expected selection and observed result for each room state.
Limitation. Track metadata can identify a published source but cannot prove that the participant is sharing the intended business content; the trainer must confirm the visible screen.
Next step
Bring a test room plan with participant roles and consent states. Agree the track-selection and fail-closed behavior before a paid pilot.