Changeset 3664 for pjproject/trunk/pjmedia/include/pjmedia/stream.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/stream.h
r3553 r3664 33 33 #include <pjmedia/rtcp.h> 34 34 #include <pjmedia/transport.h> 35 #include <pjmedia/vid_codec.h> 35 36 #include <pj/sock.h> 36 37 … … 88 89 * its own RTP/RTCP socket pair. 89 90 */ 90 struct pjmedia_stream_info91 typedef struct pjmedia_stream_info 91 92 { 92 93 pjmedia_type type; /**< Media type (audio, video) */ … … 134 135 is enabled? */ 135 136 #endif 136 }; 137 138 139 /** 140 * @see pjmedia_stream_info. 141 */ 142 typedef struct pjmedia_stream_info pjmedia_stream_info; 143 137 } pjmedia_stream_info; 138 139 140 /** 141 * This function will initialize the stream info based on information 142 * in both SDP session descriptors for the specified stream index. 143 * The remaining information will be taken from default codec parameters. 144 * If socket info array is specified, the socket will be copied to the 145 * session info as well. 146 * 147 * @param si Stream info structure to be initialized. 148 * @param pool Pool to allocate memory. 149 * @param endpt PJMEDIA endpoint instance. 150 * @param local Local SDP session descriptor. 151 * @param remote Remote SDP session descriptor. 152 * @param stream_idx Media stream index in the session descriptor. 153 * 154 * @return PJ_SUCCESS if stream info is successfully initialized. 155 */ 156 PJ_DECL(pj_status_t) 157 pjmedia_stream_info_from_sdp( pjmedia_stream_info *si, 158 pj_pool_t *pool, 159 pjmedia_endpt *endpt, 160 const pjmedia_sdp_session *local, 161 const pjmedia_sdp_session *remote, 162 unsigned stream_idx); 144 163 145 164 … … 232 251 233 252 /** 253 * Get the stream info. 254 * 255 * @param stream The media stream. 256 * @param info Stream info. 257 * 258 * @return PJ_SUCCESS on success. 259 */ 260 PJ_DECL(pj_status_t) pjmedia_stream_get_info( const pjmedia_stream *stream, 261 pjmedia_stream_info *info); 262 263 /** 234 264 * Get the stream statistics. See also 235 265 * #pjmedia_stream_get_stat_jbuf() … … 372 402 void *user_data); 373 403 404 374 405 /** 375 406 * @}
Note: See TracChangeset
for help on using the changeset viewer.