sparse-teacher-281
02/22/2026, 7:43 AMauto_subscribe do ?
await ctx.connect(auto_subscribe=AutoSubscribe.AUDIO_ONLY)tall-airline-16756
02/22/2026, 7:44 AMtall-airline-16756
02/22/2026, 7:44 AMauto_subscribe does when you call:
await ctx.connect(auto_subscribe=AutoSubscribe.AUDIO_ONLY)
Short answer:
• auto_subscribe controls which remote media tracks the client will automatically subscribe to when joining a room.
• AutoSubscribe.AUDIO_ONLY tells the client to automatically subscribe only to incoming audio tracks and ignore incoming video tracks.
What that means in practice:
• The client will receive and start delivering remote audio tracks (useful for speech processing, listening, etc.).
• Remote video tracks will not be automatically subscribed to; if you later need video you must subscribe to them manually.
• Other possible values:
◦ AutoSubscribe.VIDEO_ONLY — automatically subscribe only to video tracks.
◦ True (or default) — automatically subscribe to both audio and video.
◦ False — do not auto-subscribe to any tracks; you must subscribe manually.
If you’d like, tell me whether your use case is speech processing, low-bandwidth clients, or something else — I can recommend the best auto_subscribe setting and show how to subscribe to tracks manually if needed.
Sources: Job lifecycle | LiveKit Documentation | client-sdk-js | livekit/livekit_composite | DeepWiki