Ignore:
Timestamp:
Dec 3, 2013 10:45:36 AM (10 years ago)
Author:
riza
Message:

Re #1519: Added codec management operations to Media API in pjsua2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/media.hpp

    r4668 r4669  
    276276     * the media port from the conference bridge and Endpoint's media list. 
    277277     * Descendant should only call this method if it has registered the media 
    278      * with the previous call to #registerMediaPort(). 
     278     * with the previous call to registerMediaPort(). 
    279279     */ 
    280280    void unregisterMediaPort(); 
     
    432432 
    433433    /** 
    434      * Device capabilities, as bitmask combination of #pjmedia_aud_dev_cap. 
     434     * Device capabilities, as bitmask combination of pjmedia_aud_dev_cap. 
    435435     */ 
    436436    unsigned caps; 
     
    438438    /** 
    439439     * Supported audio device routes, as bitmask combination of 
    440      * #pjmedia_aud_dev_route. The value may be zero if the device 
     440     * pjmedia_aud_dev_route. The value may be zero if the device 
    441441     * does not support audio routing. 
    442442     */ 
     
    562562     * Check whether the sound device is currently active. The sound device 
    563563     * may be inactive if the application has set the auto close feature to 
    564      * non-zero (the sndAutoCloseTime setting in #MediaConfig), or 
     564     * non-zero (the sndAutoCloseTime setting in MediaConfig), or 
    565565     * if null sound device or no sound device has been configured via the 
    566      * #setNoDev() function. 
     566     * setNoDev() function. 
    567567     */ 
    568568    bool sndIsActive() const; 
     
    10541054}; 
    10551055 
     1056/************************************************************************* 
     1057* Codec management 
     1058*/ 
     1059 
     1060/** 
     1061 * This structure describes codec information. 
     1062 */ 
     1063struct CodecInfo 
     1064{ 
     1065    /** 
     1066     * Codec unique identification. 
     1067     */ 
     1068    string              codecId; 
     1069 
     1070    /** 
     1071     * Codec priority (integer 0-255). 
     1072     */ 
     1073    pj_uint8_t          priority; 
     1074 
     1075    /** 
     1076     * Codec description. 
     1077     */ 
     1078    string              desc; 
     1079 
     1080    /** 
     1081     * Construct from pjsua_codec_info. 
     1082     */ 
     1083    void fromPj(const pjsua_codec_info &codec_info); 
     1084}; 
     1085 
     1086/** Array of codec info */ 
     1087typedef std::vector<CodecInfo*> CodecInfoVector; 
     1088 
     1089/** 
     1090 * Codec parameters, corresponds to pjmedia_codec_param or 
     1091 * pjmedia_vid_codec_param. 
     1092 */ 
     1093typedef void *CodecParam; 
     1094 
    10561095} // namespace pj 
    10571096 
Note: See TracChangeset for help on using the changeset viewer.