microscopic-dress-75199
12/09/2025, 6:48 PMtall-airline-16756
12/09/2025, 6:48 PMtall-airline-16756
12/09/2025, 6:48 PMmicroscopic-dress-75199
12/09/2025, 6:49 PMtall-airline-16756
12/09/2025, 6:49 PMSTART_RECORDING to the console after it successfully connects and initializes the LiveKit client.
• Page JS error or failed load: check the browser console (or headless Chrome logs) for JS errors or resource load failures during template initialization.
• Room empty or no participant: verify at least one participant was connected to room-0dhX-2PGy when egress started.
• Token / connectivity issue: ensure the recorder’s join token is valid and the headless Chrome instance can reach the LiveKit server (no network/DNS/CORS blocking).
• Timeout / slow startup: long template load times can exceed the wait window — reduce external dependencies or optimize startup.
Quick steps to resolve
1. Verify the compositor emits:
◦ Add a console.log('START_RECORDING') right after the LiveKit connected event (or use the Template SDK which sends it automatically).
1. Test with built-in layout:
◦ Start room composite egress without a custom_base_url to rule out template issues.
1. Use the Template SDK or sample:
◦ Use the egress template SDK which handles START/END signaling.
1. Inspect logs:
◦ Check the headless Chrome console output for errors and the LiveKit egress logs around the same timestamps.
1. Run a local template test:
◦ Use lk egress test-template --base-url http://your-template --room room-0dhX-2PGy --layout speaker to reproduce locally.
If you’d like, tell me:
• Are you using a custom template (a custom_base_url) or the built-in layouts?
• Do you have access to the headless Chrome console logs or the template’s JS?
• Were there participants in room-0dhX-2PGy when you started egress?
I’ll suggest the exact next steps once you tell me which of the above applies.
Sources: Custom recording templates | LiveKit docs | Recording and export | LiveKit docsmicroscopic-dress-75199
12/09/2025, 6:51 PMtall-airline-16756
12/09/2025, 6:52 PMSTART_RECORDING (must appear)
◦ JS errors or failed resource loads
◦ Token or connection errors when joining the room
• Verify the template emits START_RECORDING after the LiveKit client reports connected. If you’re not using the Template SDK, add:
room.on('connected', () => console.log('START_RECORDING'));
• Test with built-in layout (no custom template) to rule out template problems.
• Run the local template tester:
lk egress test-template --base-url http://localhost:7980 --room room-0dhX-2PGy --layout speaker
If you prefer, share:
• whether template_base is serving a custom page,
• any console error snippets from headless Chrome,
• the exact egress request (sanitized if needed).
I’ll give the next actionable step once you confirm the above items.