为什么默认情况下禁用 PJSIP 的抖动缓冲区预取?

发布于 2025-01-12 08:12:09 字数 494 浏览 5 评论 0原文

PJSIP 有一个称为预取的抖动缓冲区功能。 此处定义:“将此设置为 0 以外的值将激活预取缓冲,一种抖动缓冲区功能,每次它变空时,它在其大小达到此处指定的数字之前不会返回正常帧。”它在 PJSUA level: “如果值为 0,则预取将被禁用。”默认情况下它是禁用的,这意味着所有自适应抖动缓冲算法的工作默认情况下都是无用的。我看到的缺点是有一点延迟(例如 150 毫秒),而如果不使用它,抖动缓冲区就会失去适应较差网络的能力。

PJSIP has a feature for jitter buffer named prefetching. Defined here: "Setting this to other than 0 will activate prefetch buffering, a jitter buffer feature that each time it gets empty, it won't return a normal frame until its size reaches the number specified here." It is exported here at PJSUA level: "If the value is 0, prefetching will be disabled." And it is disabled by default, meaning that all the adaptive jitter buffer algorithm work is useless by default. The downside I see is a little bit of latency (150ms, by example), while by not using it the jitter buffer loses the ability to adapt to poor networks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〃温暖了心ぐ 2025-01-19 08:12:09

默认配置中未禁用它,请参阅 pjsua_media_config_default() 函数。

It isn't disabled in default configuration, see pjsua_media_config_default() function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文