Ignore:
Timestamp:
Feb 9, 2006 2:01:40 PM (18 years ago)
Author:
bennylp
Message:

Updated with new jitter buffer, and statistics in pjsua

File:
1 edited

Legend:

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

    r162 r169  
    4040 
    4141/** 
     42 * Session info, retrieved from a session by calling 
     43 * #pjmedia_session_get_info(). 
     44 */ 
     45struct pjmedia_session_info 
     46{ 
     47    unsigned            stream_cnt; 
     48    pjmedia_stream_info stream_info[PJSDP_MAX_MEDIA]; 
     49}; 
     50 
     51 
     52/** 
    4253 * Create new session offering based on the local and remote SDP. 
    4354 * The session will start immediately. 
     
    6475                                             const pjmedia_sdp_session *rem_sdp, 
    6576                                             pjmedia_session **p_session ); 
     77 
     78 
     79/** 
     80 * Get session info. 
     81 * 
     82 * @param session       The session which info is being queried. 
     83 * @param info          Pointer to receive session info. 
     84 * 
     85 * @return              PJ_SUCCESS on success. 
     86 */ 
     87PJ_DECL(pj_status_t) pjmedia_session_get_info( pjmedia_session *session, 
     88                                               pjmedia_session_info *info ); 
    6689 
    6790 
     
    138161 * 
    139162 * @param session       The media session. 
    140  * @param count         On input, specifies the number of elements in 
    141  *                      the array. On output, the number will be filled 
    142  *                      with number of streams in the session. 
    143  * @param stat          Array of stream statistics. 
     163 * @param index         Stream index. 
     164 * @param stat          Stream statistic. 
    144165 * 
    145166 * @return              PJ_SUCCESS on success. 
    146167 */ 
    147 PJ_DECL(pj_status_t) pjmedia_session_get_stat(const pjmedia_session *session, 
    148                                               unsigned *count, 
    149                                               pjmedia_stream_stat stat[]); 
    150  
    151 /** 
    152  * Get individual stream statistics. The stream statistic shows various 
    153  * indicators such as packet count, packet lost, jitter, delay, etc. 
    154  * 
    155  * @param s             The media session. 
    156  * @param index         The stream index. 
    157  * @param stat          Stream statistics. 
    158  * 
    159  * @return              PJ_SUCCESS on success. 
    160  */ 
    161 PJ_DECL(pj_status_t) pjmedia_session_get_stream_stat(const pjmedia_session *s, 
     168PJ_DECL(pj_status_t) pjmedia_session_get_stream_stat(pjmedia_session *session, 
    162169                                                     unsigned index, 
    163170                                                     pjmedia_stream_stat *stat); 
Note: See TracChangeset for help on using the changeset viewer.