Ignore:
Timestamp:
May 13, 2006 10:46:23 PM (18 years ago)
Author:
bennylp
Message:

Another major modifications in PJMEDIA:

  • handle multiple frames in one packet
  • split stream creation into two steps to allow customization
  • PLC framework and implementation with G.711 and speex
  • stream returns NO_FRAME correctly.
  • added ptime argument in pjsua
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/simpleua.c

    r412 r438  
    586586                                  pj_status_t status) 
    587587{ 
     588    pjmedia_session_info sess_info; 
    588589    const pjmedia_sdp_session *local_sdp; 
    589590    const pjmedia_sdp_session *remote_sdp; 
     
    608609 
    609610 
     611    /* Create session info based on the two SDPs.  
     612     * We only support one stream per session for now. 
     613     */ 
     614    status = pjmedia_session_info_from_sdp(inv->dlg->pool, g_med_endpt, 1, 
     615                                           &sess_info, &g_med_skinfo, 
     616                                           local_sdp, remote_sdp); 
     617    if (status != PJ_SUCCESS) { 
     618        app_perror( THIS_FILE, "Unable to create media session", status); 
     619        return; 
     620    } 
     621 
     622    /* If required, we can also change some settings in the session info, 
     623     * (such as jitter buffer settings, codec settings, etc) before we 
     624     * create the session. 
     625     */ 
     626 
    610627    /* Create new media session, passing the two SDPs, and also the 
    611628     * media socket that we created earlier. 
    612629     * The media session is active immediately. 
    613630     */ 
    614     status = pjmedia_session_create( g_med_endpt, 1,  
    615                                      &g_med_skinfo, 
    616                                      local_sdp, remote_sdp,  
     631    status = pjmedia_session_create( g_med_endpt, &sess_info, 
    617632                                     NULL, &g_med_session ); 
    618633    if (status != PJ_SUCCESS) { 
Note: See TracChangeset for help on using the changeset viewer.