Ignore:
Timestamp:
Dec 13, 2018 6:57:23 AM (3 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/include/pjsua2/endpoint.hpp

    r5912 r5923  
    416416}; 
    417417 
     418/** 
     419 * Parameter of Endpoint::onCallMediaEvent() callback. 
     420 */ 
     421struct OnMediaEventParam 
     422{ 
     423    /** 
     424     * The media event. 
     425     */ 
     426    MediaEvent      ev; 
     427}; 
    418428 
    419429////////////////////////////////////////////////////////////////////////////// 
     
    15861596     */ 
    15871597    virtual void onIpChangeProgress(OnIpChangeProgressParam &prm) 
     1598    { PJ_UNUSED_ARG(prm); } 
     1599 
     1600    /** 
     1601     * Notification about media events such as video notifications. This 
     1602     * callback will most likely be called from media threads, thus 
     1603     * application must not perform heavy processing in this callback. 
     1604     * If application needs to perform more complex tasks to handle the 
     1605     * event, it should post the task to another thread. 
     1606     * 
     1607     * @param prm       Callback parameter. 
     1608     */ 
     1609    virtual void onMediaEvent(OnMediaEventParam &prm) 
    15881610    { PJ_UNUSED_ARG(prm); } 
    15891611 
     
    17341756    on_call_media_transport_state(pjsua_call_id call_id, 
    17351757                                  const pjsua_med_tp_state_info *info); 
     1758    static void on_media_event(pjmedia_event *event); 
    17361759    static void on_call_media_event(pjsua_call_id call_id, 
    17371760                                    unsigned med_idx, 
Note: See TracChangeset for help on using the changeset viewer.