Anshuman S. Rawat <arawat <at> 3clogic.com> writes: > > 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 > > Hi, As I understand it PJMEDIA_JB_MISSING_FRAME is for when there is gap in the received frame sequence numbers, i.e. if frames 1,2,4,5 are received, frame 3 is missing. PJMEDIA_JB_ZERO_EMPTY_FRAME is when the jitter buffer has run empty. Yann