Ignore:
Timestamp:
Dec 13, 2018 6:57:23 AM (6 years ago)
Author:
nanang
Message:

Re #2168:

  • Added a new PJSUA callback on_media_event().
  • Added audio device error handling into PJSUA2.
File:
1 edited

Legend:

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

    r5920 r5923  
    14211421} 
    14221422 
    1423  
    1424 /* Callback to receive media events */ 
     1423/* Callback to receive global media events */ 
     1424pj_status_t on_media_event(pjmedia_event *event, void *user_data) 
     1425{ 
     1426    pj_status_t status = PJ_SUCCESS; 
     1427 
     1428    PJ_UNUSED_ARG(user_data); 
     1429 
     1430    /* Forward the event */ 
     1431    if (pjsua_var.ua_cfg.cb.on_media_event) { 
     1432        (*pjsua_var.ua_cfg.cb.on_media_event)(event); 
     1433    } 
     1434 
     1435    return status; 
     1436} 
     1437 
     1438/* Callback to receive media events of a call */ 
    14251439pj_status_t call_media_on_event(pjmedia_event *event, 
    14261440                                void *user_data) 
Note: See TracChangeset for help on using the changeset viewer.