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/endpoint.hpp

    r4668 r4669  
    10071007    AudDevManager &audDevManager(); 
    10081008 
     1009    /************************************************************************* 
     1010     * Codec management operations 
     1011     */ 
     1012 
     1013    /** 
     1014     * Enum all supported codecs in the system. 
     1015     * 
     1016     * @return          Array of codec info. 
     1017     */ 
     1018    const CodecInfoVector &codecEnum() throw(Error); 
     1019 
     1020    /** 
     1021     * Change codec priority. 
     1022     * 
     1023     * @param codec_id  Codec ID, which is a string that uniquely identify 
     1024     *                  the codec (such as "speex/8000"). 
     1025     * @param priority  Codec priority, 0-255, where zero means to disable 
     1026     *                  the codec. 
     1027     * 
     1028     */ 
     1029    void codecSetPriority(const string &codec_id, 
     1030                          pj_uint8_t priority) throw(Error); 
     1031 
     1032    /** 
     1033     * Get codec parameters. 
     1034     * 
     1035     * @param codec_id          Codec ID. 
     1036     * 
     1037     * @return                  Codec parameters. If codec is not found, Error 
     1038     *                          will be thrown. 
     1039     * 
     1040     */ 
     1041    CodecParam codecGetParam(const string &codec_id) const throw(Error); 
     1042 
     1043    /** 
     1044     * Set codec parameters. 
     1045     * 
     1046     * @param codec_id  Codec ID. 
     1047     * @param param     Codec parameter to set. Set to NULL to reset 
     1048     *                  codec parameter to library default settings. 
     1049     * 
     1050     */ 
     1051    void codecSetParam(const string &codec_id, 
     1052                       const CodecParam param) throw(Error); 
     1053 
     1054 
    10091055public: 
    10101056    /* 
     
    10751121    AudioMediaVector             mediaList; 
    10761122    AudDevManager                audioDevMgr; 
     1123    CodecInfoVector              codecInfoList; 
    10771124 
    10781125    /* Endpoint static callbacks */ 
     
    11971244                              unsigned flags); 
    11981245 
     1246private: 
     1247    void clearCodecInfoList(); 
     1248 
    11991249}; 
    12001250 
Note: See TracChangeset for help on using the changeset viewer.