flaky-beard-91685
11/13/2025, 11:21 AMtall-airline-16756
11/13/2025, 11:21 AMtall-airline-16756
11/13/2025, 11:22 AMStartTrackCompositeEgress API to start the recording, making sure to specify only the camera and audio track IDs you want:
• Set the video_track_id to your camera track’s ID.
• Set the audio_track_id to the associated audio track’s ID, if you have one.
• Be sure not to include any screen share track IDs here.
This way, your recording will include just the camera and audio tracks you want, leaving out screen sharing and other tracks.
If you’d like, I’m here to guide you through the implementation or answer any questions you have—just let me know!
Sources: Recording participants | LiveKit docs | packages/livekit-server-sdk/src/EgressClient.ts | livekit-protocol/livekit/protocol/egress.pyi | src/main/kotlin/io/livekit/server/EgressServiceClient.kt | README.mdflaky-beard-91685
11/13/2025, 11:39 AMtall-airline-16756
11/13/2025, 11:40 AMflaky-beard-91685
11/13/2025, 11:41 AMtall-airline-16756
11/13/2025, 11:41 AM{
"room_name": "my-room",
"layout": "grid",
"preset": "H264_720P_30",
"segment_outputs": [
{
"protocol": "HLS_PROTOCOL",
"filename_prefix": "path/to/hls-output",
"playlist_name": "output.m3u8",
"segment_duration": 10,
"s3": {
"access_key": "your-access-key",
"secret": "your-secret-key",
"region": "us-east-1",
"bucket": "my-recordings-bucket"
}
}
],
"stream_outputs": [
{
"protocol": "RTMP",
"urls": [
"rtmp://live.twitch.tv/app/STREAM_KEY",
"rtmp://a.rtmp.youtube.com/live2/YOUR_STREAM_KEY"
]
}
]
}
Explanation:
• Segment Outputs: This part sets up your HLS segment output to be saved in an S3 bucket.
• Stream Outputs: This enables streaming via RTMP to multiple platforms at once.
This configuration will start both outputs together in a single egress session. If you'd like, I’m here to help with more examples or guide you through a specific SDK—just let me know!
Sources: Egress examples | LiveKit docs | README.md | Recording and export | LiveKit docs