Changeset 5479
- Timestamp:
- Nov 4, 2016 2:57:20 PM (8 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/stream.h
r5242 r5479 34 34 #include <pjmedia/transport.h> 35 35 #include <pjmedia/vid_codec.h> 36 #include <pjmedia/stream_common.h> 36 37 #include <pj/sock.h> 37 38 … … 431 432 pjmedia_stream_send_rtcp_bye( pjmedia_stream *stream ); 432 433 434 435 /** 436 * Get the RTP session information of the media stream. This function can be 437 * useful for app with custom media transport to inject/filter some 438 * outgoing/incoming proprietary packets into normal audio RTP traffics. 439 * This will return the original pointer to the internal states of the stream, 440 * and generally it is not advisable for app to modify them. 441 * 442 * @param stream The media stream. 443 * 444 * @param session_info The stream session info. 445 * 446 * @return PJ_SUCCESS on success. 447 */ 448 PJ_DECL(pj_status_t) 449 pjmedia_stream_get_rtp_session_info(pjmedia_stream *stream, 450 pjmedia_stream_rtp_sess_info *session_info); 451 452 433 453 /** 434 454 * @} -
pjproject/trunk/pjmedia/include/pjmedia/stream_common.h
r3664 r5479 28 28 #include <pjmedia/codec.h> 29 29 #include <pjmedia/sdp.h> 30 #include <pjmedia/rtp.h> 31 #include <pjmedia/rtcp.h> 30 32 31 33 32 34 PJ_BEGIN_DECL 35 36 /** 37 * This structure describes rtp/rtcp session information of the media stream. 38 */ 39 typedef struct pjmedia_stream_rtp_sess_info 40 { 41 /** 42 * The decode RTP session. 43 */ 44 const pjmedia_rtp_session *rx_rtp; 45 46 /** 47 * The encode RTP session. 48 */ 49 const pjmedia_rtp_session *tx_rtp; 50 51 /** 52 * The decode RTCP session. 53 */ 54 const pjmedia_rtcp_session *rtcp; 55 56 } pjmedia_stream_rtp_sess_info; 57 58 33 59 34 60 /** -
pjproject/trunk/pjmedia/include/pjmedia/vid_stream.h
r5410 r5479 32 32 #include <pjmedia/transport.h> 33 33 #include <pjmedia/vid_codec.h> 34 #include <pjmedia/stream_common.h> 34 35 #include <pj/sock.h> 35 36 … … 446 447 pjmedia_vid_stream *stream); 447 448 449 /** 450 * Get the RTP session information of the video media stream. This function 451 * can be useful for app with custom media transport to inject/filter some 452 * outgoing/incoming proprietary packets into normal video RTP traffics. 453 * This will return the original pointer to the internal states of the stream, 454 * and generally it is not advisable for app to modify them. 455 * 456 * @param stream The video media stream. 457 * 458 * @param session_info The stream session info. 459 * 460 * @return PJ_SUCCESS on success. 461 */ 462 PJ_DECL(pj_status_t) 463 pjmedia_vid_stream_get_rtp_session_info(pjmedia_vid_stream *stream, 464 pjmedia_stream_rtp_sess_info *session_info); 465 448 466 449 467 /** -
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r5478 r5479 23 23 #include <pjmedia/rtcp.h> 24 24 #include <pjmedia/jbuf.h> 25 #include <pjmedia/stream_common.h>26 25 #include <pj/array.h> 27 26 #include <pj/assert.h> … … 2924 2923 return PJ_SUCCESS; 2925 2924 } 2925 2926 2927 /** 2928 * Get RTP session information from stream. 2929 */ 2930 PJ_DEF(pj_status_t) 2931 pjmedia_stream_get_rtp_session_info(pjmedia_stream *stream, 2932 pjmedia_stream_rtp_sess_info *session_info) 2933 { 2934 session_info->rx_rtp = &stream->dec->rtp; 2935 session_info->tx_rtp = &stream->enc->rtp; 2936 session_info->rtcp = &stream->rtcp; 2937 return PJ_SUCCESS; 2938 } -
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r5478 r5479 23 23 #include <pjmedia/rtcp.h> 24 24 #include <pjmedia/jbuf.h> 25 #include <pjmedia/stream_common.h>26 25 #include <pj/array.h> 27 26 #include <pj/assert.h> … … 2064 2063 2065 2064 2065 /** 2066 * Get RTP session information from video stream. 2067 */ 2068 PJ_DEF(pj_status_t) 2069 pjmedia_vid_stream_get_rtp_session_info(pjmedia_vid_stream *stream, 2070 pjmedia_stream_rtp_sess_info *session_info) 2071 { 2072 session_info->rx_rtp = &stream->dec->rtp; 2073 session_info->tx_rtp = &stream->enc->rtp; 2074 session_info->rtcp = &stream->rtcp; 2075 return PJ_SUCCESS; 2076 } 2077 2078 2066 2079 #endif /* PJMEDIA_HAS_VIDEO */
Note: See TracChangeset
for help on using the changeset viewer.