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/include/pjsua2/call.hpp

    r5899 r5923  
    228228}; 
    229229 
    230 /** 
    231  * This structure describes a media format changed event. 
    232  */ 
    233 struct MediaFmtChangedEvent 
    234 { 
    235     unsigned newWidth;      /**< The new width.     */ 
    236     unsigned newHeight;     /**< The new height.    */ 
    237 }; 
    238  
    239 /** 
    240  * Media event data. 
    241  */ 
    242 typedef union MediaEventData { 
    243     /** 
    244      * Media format changed event data. 
    245      */ 
    246     MediaFmtChangedEvent    fmtChanged; 
    247      
    248     /** 
    249      * Pointer to storage to user event data, if it's outside 
    250      * this struct 
    251      */ 
    252     GenericData         ptr; 
    253  
    254 } MediaEventData; 
    255  
    256 /** 
    257  * This structure describes a media event. It corresponds to the 
    258  * pjmedia_event structure. 
    259  */ 
    260 struct MediaEvent 
    261 { 
    262     /** 
    263      * The event type. 
    264      */ 
    265     pjmedia_event_type          type; 
    266  
    267     /** 
    268      * Additional data/parameters about the event. The type of data 
    269      * will be specific to the event type being reported. 
    270      */ 
    271     MediaEventData              data; 
    272      
    273     /** 
    274      * Pointer to original pjmedia_event. Only valid when the struct 
    275      * is converted from PJSIP's pjmedia_event. 
    276      */ 
    277     void                       *pjMediaEvent; 
    278  
    279 public: 
    280     /** 
    281      * Convert from pjsip 
    282      */ 
    283     void fromPj(const pjmedia_event &ev); 
    284 }; 
    285230 
    286231/** 
Note: See TracChangeset for help on using the changeset viewer.