- Timestamp:
- Nov 29, 2013 3:05:48 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/endpoint.hpp
r4657 r4662 25 25 */ 26 26 #include <pjsua2/persistent.hpp> 27 #include <pjsua2/media.hpp> 27 28 #include <pjsua2/siptypes.hpp> 28 29 … … 946 947 void transportClose(TransportId id) throw(Error); 947 948 949 /************************************************************************* 950 * Media operations 951 */ 952 953 /** 954 * Add media to the media list. 955 * 956 * @param media media to be added. 957 */ 958 void addMedia(AudioMedia &media); 959 960 /** 961 * Remove media from the media list. 962 * 963 * @param media media to be removed. 964 */ 965 void removeMedia(AudioMedia &media); 966 967 /** 968 * Check if media has been added to the media list. 969 * 970 * @param media media to be check. 971 * 972 * @return True if media has been added, false otherwise. 973 */ 974 bool mediaExists(const AudioMedia &media) const; 975 976 /** 977 * Get maximum number of media port. 978 * 979 * @return Maximum number of media port in the conference bridge. 980 */ 981 unsigned mediaMaxPorts() const; 982 983 /** 984 * Get current number of active media port in the bridge. 985 * 986 * @return The number of active media port. 987 */ 988 unsigned mediaActivePorts() const; 989 990 /** 991 * Enumerate all media port. 992 * 993 * @return The list of media port. 994 */ 995 const AudioMediaVector &mediaEnumPorts() const throw(Error); 996 948 997 public: 949 998 /* … … 1010 1059 1011 1060 private: 1012 static Endpoint *instance_; // static instance 1013 LogWriter *writer; // Custom writer, if any 1061 static Endpoint *instance_; // static instance 1062 LogWriter *writer; // Custom writer, if any 1063 AudioMediaVector mediaList; 1014 1064 1015 1065 /* Endpoint static callbacks */ … … 1071 1121 static void on_mwi_info(pjsua_acc_id acc_id, 1072 1122 pjsua_mwi_info *mwi_info); 1123 1073 1124 static void on_buddy_state(pjsua_buddy_id buddy_id); 1074 1075 1125 }; 1076 1126
Note: See TracChangeset
for help on using the changeset viewer.