nice-photographer-25669
09/30/2025, 5:15 PMtall-airline-16756
09/30/2025, 5:15 PMtall-airline-16756
09/30/2025, 5:16 PMnice-photographer-25669
09/30/2025, 5:18 PMtall-airline-16756
09/30/2025, 5:19 PMrtcconfig.PortRange). Also, make sure that firewalls or NATs aren’t dropping any packets.
• Try enabling debug logging in your LiveKit setup by setting the SIP_DEBUG environment variable. This can give us valuable clues about issues like MTU-related congestion or packet fragmentation.
• It’s worth checking if the MTU size might be causing packet loss. LiveKit defaults to an MTU size of 1500 bytes, and if packets are oversized, they might get fragmented or lost. The debug logs can show warnings if this is happening.
• Using packet capture tools like Wireshark can be really helpful to analyze the media path and spot any patterns of packet loss or misrouting.
• Lastly, if you have access to LiveKit’s RTPStats, monitoring metrics such as packet loss rate, jitter, and drift can provide great insights into the media quality.
These steps should guide you toward identifying and fixing the root cause of the audio breaking. Please don’t hesitate to reach out if you’d like me to walk you through any of these steps or if you have any other questions—I’m here to support you!
Sources: SIP troubleshooting guide | LiveKit Docs | livekit-protocol/src/livekit.rs | pkg/sip/media_port_test.go | server_test.go | protobufs/livekit_models.protonice-photographer-25669
09/30/2025, 5:22 PMtall-airline-16756
09/30/2025, 5:23 PMtoProto method, you’ll be able to get valuable data such as packets_lost, jitter_current, and drift values. This is especially handy if you’re customizing or extending LiveKit services.
• Client SDKs: Most client SDKs offer APIs that let you fetch RTPStats for specific tracks, making it easier to monitor performance on the client side:
• Flutter (Dart): Simply call track.getStats() to get RTPStats. Here’s a quick example:
RTPStats stats = await track.getStats();
print('Packets Lost: ${stats.packetsLost}');
print('Jitter Current: ${stats.jitterCurrent} µs');
• Python: You can use track.get_stats() to access these metrics. Here’s how it looks:
stats = await track.get_stats()
print(f"Jitter: {stats.jitter_current} µs")
print(f"Packet Loss %: {stats.packet_loss_percentage}")
• Node.js: The ReceivedRtpStreamStats interface helps you get jitter and packet loss stats, though drift metrics might not be fully available just yet.
If you’d like, I’m here to provide specific examples or help you with a particular SDK. Just let me know how I can support you!
Sources: livekit-ffi/protocol/stats.proto | livekit/livekit_models.pb.go | pkg/sfu/rtpstats/rtpstats_receiver_test.go | lib/src/proto/livekit_models.pb.dart | livekit-protocol/livekit/protocol/models.pyinice-photographer-25669
09/30/2025, 5:24 PM