How do I enable NACK generation for my subscribers...
# ask-ai
f
How do I enable NACK generation for my subscribers in Go SDK?
t
Thanks for reaching out, David. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thank you for your question! I’m happy to share that NACK (Negative Acknowledgment) generation for subscribers in the LiveKit Go SDK is thoughtfully handled automatically by the server-side WebRTC stack. This means you don’t need to worry about enabling it yourself, as it’s seamlessly integrated into the RTP/RTCP pipeline. The server is set up to support NACK feedback for both audio and video streams. It uses the
NackGeneratorInterceptor
to keep an eye on RTP sequence numbers, spot any packet loss, and send RTCP NACK packets back to the publisher whenever it detects gaps. This helps maintain a smooth streaming experience. So, as someone using the Go SDK, you can rest easy knowing that NACK generation is already enabled by default for all subscribed tracks—no extra steps needed on your part! Sources: pkg/interceptor/nackgenerator.go | Protocol & WebRTC Stack | livekit/livekit_composite | DeepWiki | test/client/client.go
f
what is the default retransmit buffer size for responder then?
t
Thank you for your question! The default retransmit buffer size for the responder in LiveKit isn’t explicitly documented, but I can share that the general packet buffer sizes for SFU video and audio are noted as 500 and 200 packets respectively in the configuration sample. These numbers relate to general packet buffering and might not directly apply to retransmission on the responder side. If you have a particular use case in mind or need more details, please feel free to share. I’m here to help and can also connect you with a specialist if needed to make sure all your questions are answered. Sources: How We Built a Globally Distributed WebRTC Mesh Network | libwebrtc/src/data_channel.rs | components/esp_webrtc/impl/peer_default/include/esp_peer_default.h | pkg/sfu/buffer/buffer.go
f
can you show me a file on github where this default is set?
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
f
It seems like our livekit cloud does not respond to our NACK requests. How can I further debug it?