0

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.

LeeWo
  • 3
  • 4

1 Answers1

0

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

TMSZ
  • 695
  • 4
  • 5
  • It is: `cfg->jb_init = cfg->jb_min_pre = cfg->jb_max_pre = cfg->jb_max = -1;` and then in pjmedia_stream_create(): `jb_init = 0;` if less than frame's ptime. – LeeWo Mar 11 '22 at 13:59