Changeset 3664 for pjproject/trunk/pjmedia/include/pjmedia/endpoint.h
- Timestamp:
- Jul 19, 2011 3:42:28 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
-
pjproject/trunk/pjmedia/include/pjmedia/endpoint.h
r3553 r3664 40 40 #include <pjmedia/codec.h> 41 41 #include <pjmedia/sdp.h> 42 #include <pjmedia/transport.h> 42 43 43 44 … … 180 181 * also denotes the maximum number of streams (i.e. 181 182 * the "m=" lines) that will be created in the SDP. 183 * By convention, if this value is greater than one, 184 * the first media will be audio and the remaining 185 * media is video. 182 186 * @param sock_info Array of socket transport information. One 183 187 * transport is needed for each media stream, and … … 194 198 pjmedia_sdp_session **p_sdp ); 195 199 200 /** 201 * Create a "blank" SDP session description. The SDP will contain basic SDP 202 * fields such as origin, time, and name, but without any media lines. 203 * 204 * @param endpt The media endpoint. 205 * @param pool Pool to allocate memory from. 206 * @param sess_name Optional SDP session name, or NULL to use default 207 * value. 208 * @param origin Address to put in the origin field. 209 * @param p_sdp Pointer to receive the created SDP session. 210 * 211 * @return PJ_SUCCESS on success, or the appropriate error code. 212 */ 213 PJ_DECL(pj_status_t) pjmedia_endpt_create_base_sdp(pjmedia_endpt *endpt, 214 pj_pool_t *pool, 215 const pj_str_t *sess_name, 216 const pj_sockaddr *origin, 217 pjmedia_sdp_session **p_sdp); 218 219 /** 220 * Create SDP media line for audio media. 221 * 222 * @param endpt The media endpoint. 223 * @param pool Pool to allocate memory from. 224 * @param si Socket information. 225 * @param options Option flags, must be zero for now. 226 * @param p_m Pointer to receive the created SDP media. 227 * 228 * @return PJ_SUCCESS on success, or the appropriate error code. 229 */ 230 PJ_DECL(pj_status_t) pjmedia_endpt_create_audio_sdp(pjmedia_endpt *endpt, 231 pj_pool_t *pool, 232 const pjmedia_sock_info*si, 233 unsigned options, 234 pjmedia_sdp_media **p_m); 235 236 /** 237 * Create SDP media line for video media. 238 * 239 * @param endpt The media endpoint. 240 * @param pool Pool to allocate memory from. 241 * @param si Socket information. 242 * @param options Option flags, must be zero for now. 243 * @param p_m Pointer to receive the created SDP media. 244 * 245 * @return PJ_SUCCESS on success, or the appropriate error code. 246 */ 247 PJ_DECL(pj_status_t) pjmedia_endpt_create_video_sdp(pjmedia_endpt *endpt, 248 pj_pool_t *pool, 249 const pjmedia_sock_info*si, 250 unsigned options, 251 pjmedia_sdp_media **p_m); 196 252 197 253 /**
Note: See TracChangeset
for help on using the changeset viewer.