little-king-41579
03/02/2026, 5:16 PMtall-airline-16756
03/02/2026, 5:16 PMtall-airline-16756
03/02/2026, 5:17 PMsetTrackSubscribed() on a RemoteParticipant to enable/disable a track).
• On the server, LiveKit doesn’t provide a direct “force-subscribe this participant to that participant” API; server-side control is usually done by adjusting permissions or room options and influencing client behavior. If you want, I can provide exact client-side code for setTrackSubscribed() in your SDK once you tell me which one you use.
Tell me the platform and SDK and I’ll give step-by-step code and any server-side suggestions.little-king-41579
03/02/2026, 5:18 PMtall-airline-16756
03/02/2026, 5:18 PMsetTrackSubscribed() (or equivalent event handlers like track_subscribed) to accept a track. If you can run or update the receiving client, I can provide exact code for the JavaScript/TypeScript SDK or another supported client SDK.
• Influence via server-side: From the server (Python) you can adjust room configuration, participant permissions, publish/unpublish tracks, or send a signaling message to a client asking it to subscribe. But the final subscribe action must be performed by the receiving client.
• Use a control message: If you control both clients, have your server send a control message (via data channel, REST push to the client app, or another signaling channel) instructing the receiving client to subscribe to a particular publisher’s tracks; then the client calls the appropriate SDK method to subscribe.
Next steps I can help with
• If you want client-side code, tell me which client SDK you’re using (Browser JS/TS, React, React Native, Flutter, etc.) and whether you want an example to subscribe a specific track or all tracks. I will provide step-by-step sample code.
• If you control the clients but need Python examples for sending control messages or updating room state, tell me how you deliver control messages to clients (data channel, push, REST), and I’ll provide a Python snippet for that flow.
• If you only have Python/server access and cannot change clients, tell me more about your constraints so I can suggest alternatives (for example, relaying tracks through a bot participant you control that can subscribe and forward media).
Which option would you like to pursue? If you want client-side sample code, please confirm the client SDK and whether you want to subscribe to audio, video, or both.
Sources: client-sdk-js | livekit/livekit_composite | DeepWiki | client-sdk-flutter | livekit/livekit_composite | DeepWiki