gifted-oil-56906
12/19/2025, 10:19 AMtall-airline-16756
12/19/2025, 10:20 AMtall-airline-16756
12/19/2025, 10:20 AMgifted-oil-56906
12/19/2025, 10:20 AMtall-airline-16756
12/19/2025, 10:21 AM// prompt user to share screen and publish tracks
const tracks = await room.localParticipant.createScreenTracks({ audio: true });
tracks.forEach(t => room.localParticipant.publishTrack(t));
Notes: tab audio support is browser-dependent.
• Record individual participant screens (Participant Egress)
◦ Use Participant Egress to record a specific participant’s published tracks (screen + audio) to MP4 or cloud storage.
◦ Example CLI:
lk egress start --type participant --room-name "interview-room" --identity "interviewee-123" --output-file "s3://bucket/interviewee-123.mp4"
• Record the whole session (Room Composite Egress)
◦ Use Room Composite Egress to produce a composite MP4 that includes all participants and screen shares (rendered via headless Chrome).
◦ Example flow: call the Egress API / startRoomCompositeEgress with output config and desired layout (speaker, grid, custom).
• Consent / compliance
◦ If you need consent, prompt participants before starting Egress; start recording only after consent is granted.
Platform notes:
• iOS: screen sharing requires a Broadcast Upload Extension.
• Android: use MediaProjectionManager and a foreground service.
• Web: screen audio only in supported browsers (e.g., Chrome tab audio).
If you want, tell me:
• Which client(s) you’re using (Web, iOS, Android, Flutter).
• Do you want per-participant files or a single composite file?
• Any storage target (S3/GCS/local)?
I’ll give you exact code/snippets and egress commands for your chosen platform and output.
Sources: Screen sharing | LiveKit docs | Recording participants | LiveKit docs | RoomComposite Egress | LiveKit Docs | Collect recording consent with tasks | LiveKit docs | Recording and export | LiveKit docsgifted-oil-56906
12/19/2025, 10:29 AMtall-airline-16756
12/19/2025, 10:30 AMgifted-oil-56906
12/19/2025, 10:31 AMtall-airline-16756
12/19/2025, 10:31 AMgifted-oil-56906
12/19/2025, 10:32 AMtall-airline-16756
12/19/2025, 10:33 AM