Ignore:
Timestamp:
Nov 4, 2016 2:57:20 PM (4 years ago)
Author:
riza
Message:

Closed #1978: Add function to get RTP session from stream/video stream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c

    r5478 r5479  
    2323#include <pjmedia/rtcp.h> 
    2424#include <pjmedia/jbuf.h> 
    25 #include <pjmedia/stream_common.h> 
    2625#include <pj/array.h> 
    2726#include <pj/assert.h> 
     
    20642063 
    20652064 
     2065/** 
     2066 * Get RTP session information from video stream. 
     2067 */ 
     2068PJ_DEF(pj_status_t) 
     2069pjmedia_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 
    20662079#endif /* PJMEDIA_HAS_VIDEO */ 
Note: See TracChangeset for help on using the changeset viewer.