Ignore:
Timestamp:
Feb 20, 2008 8:56:15 AM (14 years ago)
Author:
bennylp
Message:

Ticket #489: New PJSUA callbacks to notify application when media stream is created and destroyed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r1796 r1806  
    887887 
    888888    if (call->session) { 
     889        if (pjsua_var.ua_cfg.cb.on_stream_destroyed) { 
     890            pjsua_var.ua_cfg.cb.on_stream_destroyed(call_id, call->session, 0); 
     891        } 
     892 
    889893        pjmedia_session_destroy(call->session); 
    890894        call->session = NULL; 
     
    10581062        pjmedia_session_get_port(call->session, 0, &media_port); 
    10591063 
     1064        /* Notify application about stream creation. 
     1065         * Note: application may modify media_port to point to different 
     1066         * media port 
     1067         */ 
     1068        if (pjsua_var.ua_cfg.cb.on_stream_created) { 
     1069            pjsua_var.ua_cfg.cb.on_stream_created(call_id, call->session, 
     1070                                                  0, &media_port); 
     1071        } 
    10601072 
    10611073        /* 
Note: See TracChangeset for help on using the changeset viewer.