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/src/pjsua2/call.cpp

    r5899 r5923  
    120120#endif     
    121121    pjSdpSession = (void *)&sdp; 
    122 } 
    123  
    124 void MediaEvent::fromPj(const pjmedia_event &ev) 
    125 { 
    126     type = ev.type; 
    127     if (type == PJMEDIA_EVENT_FMT_CHANGED) { 
    128         data.fmtChanged.newWidth = ev.data.fmt_changed.new_fmt.det.vid.size.w; 
    129         data.fmtChanged.newHeight = ev.data.fmt_changed.new_fmt.det.vid.size.h; 
    130     } 
    131     pjMediaEvent = (void *)&ev; 
    132122} 
    133123 
Note: See TracChangeset for help on using the changeset viewer.