Ignore:
Timestamp:
Jul 29, 2009 12:14:21 PM (15 years ago)
Author:
bennylp
Message:

Ticket #923: New API to retrieve current jitter buffer state from a stream/session

  • added pjmedia_session_get_stream_stat_jbuf() and pjmedia_session_get_stream_stat_jbuf()
  • fixed const correctness in pjmedia_jbuf_get_state(), jb_framelist_size(), and pj_math_stat_get_stddev(),
  • modify the jitter buffer statistic log message printed by stream (it contains newlines)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/stream.h

    r2506 r2844  
    2929#include <pjmedia/codec.h> 
    3030#include <pjmedia/endpoint.h> 
     31#include <pjmedia/jbuf.h> 
    3132#include <pjmedia/port.h> 
    3233#include <pjmedia/rtcp.h> 
     
    215216 
    216217/** 
    217  * Get the stream statistics. 
     218 * Get the stream statistics. See also 
     219 * #pjmedia_stream_get_stat_jbuf() 
    218220 * 
    219221 * @param stream        The media stream. 
     
    237239                                                 pjmedia_rtcp_xr_stat *stat); 
    238240#endif 
     241 
     242/** 
     243 * Get current jitter buffer state. See also 
     244 * #pjmedia_stream_get_stat() 
     245 * 
     246 * @param stream        The media stream. 
     247 * @param state         Jitter buffer state. 
     248 * 
     249 * @return              PJ_SUCCESS on success. 
     250 */ 
     251PJ_DECL(pj_status_t) pjmedia_stream_get_stat_jbuf(const pjmedia_stream *stream, 
     252                                                  pjmedia_jb_state *state); 
     253 
    239254 
    240255/** 
Note: See TracChangeset for help on using the changeset viewer.