[pjsip] jitter buffer - missing frame or zero (empty) frame?

Anshuman S. Rawat arawat at 3clogic.com
Wed Jun 3 04:38:43 EDT 2009


Hi,

I have query regarding the frame type returned by pjmedia_jbuf_get_frame2(). 
For a particular application I am developing, I want to know precisely 
whether an incoming media (audio) frame is lost or delayed (such that it has 
to be dropped) and I want this information just about when frames are being 
played out (i.e. after jitter buffer processing). For this I was using frame 
type returned from jitter buffer as an indicator i.e.if frame type is 
PJMEDIA_JB_MISSING_FRAME, frame is considered lost or dropped.

However, I noticed from logs that when frames are lost (I physically "broke" 
the network connection), frame type shows up as PJMEDIA_JB_ZERO_EMPTY_FRAME 
and not PJMEDIA_JB_MISSING_FRAME.

Could some one throw some more light on this? or have a different way to do 
this?

Thanks,
Anshuman 




More information about the pjsip mailing list