Changeset 813


Ignore:
Timestamp:
Nov 21, 2006 9:06:47 AM (14 years ago)
Author:
bennylp
Message:

Added jitter buffer settings in PJSUA-API media config

Location:
pjproject/trunk/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r797 r813  
    23252325     */ 
    23262326    unsigned            ec_tail_len; 
     2327 
     2328    /**  
     2329     * Jitter buffer initial prefetch delay in msec. The value must be 
     2330     * between jb_min_pre and jb_max_pre below. 
     2331     * 
     2332     * Default: -1 (to use default stream settings, currently 150 msec) 
     2333     */ 
     2334    int                 jb_init; 
     2335 
     2336    /** 
     2337     * Jitter buffer minimum prefetch delay in msec. 
     2338     * 
     2339     * Default: -1 (to use default stream settings, currently 60 msec) 
     2340     */ 
     2341    int                 jb_min_pre; 
     2342     
     2343    /** 
     2344     * Jitter buffer maximum prefetch delay in msec. 
     2345     * 
     2346     * Default: -1 (to use default stream settings, currently 240 msec) 
     2347     */ 
     2348    int                 jb_max_pre; 
     2349 
     2350    /** 
     2351     * Set maximum delay that can be accomodated by the jitter buffer msec. 
     2352     * 
     2353     * Default: -1 (to use default stream settings, currently 360 msec) 
     2354     */ 
     2355    int                 jb_max; 
     2356 
    23272357}; 
    23282358 
     
    23442374    cfg->ilbc_mode = PJSUA_DEFAULT_ILBC_MODE; 
    23452375    cfg->ec_tail_len = PJSUA_DEFAULT_EC_TAIL_LEN; 
     2376    cfg->jb_init = cfg->jb_min_pre = cfg->jb_max_pre = cfg->jb_max = -1; 
    23462377} 
    23472378 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r797 r813  
    21322132         * (such as jitter buffer parameters, codec ptime, etc.) 
    21332133         */ 
     2134        sess_info.stream_info[0].jb_init = pjsua_var.media_cfg.jb_init; 
     2135        sess_info.stream_info[0].jb_min_pre = pjsua_var.media_cfg.jb_min_pre; 
     2136        sess_info.stream_info[0].jb_max_pre = pjsua_var.media_cfg.jb_max_pre; 
     2137        sess_info.stream_info[0].jb_max = pjsua_var.media_cfg.jb_max; 
    21342138 
    21352139        /* Create session based on session info. */ 
Note: See TracChangeset for help on using the changeset viewer.