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/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> 
     
    29242923    return PJ_SUCCESS; 
    29252924} 
     2925 
     2926 
     2927/** 
     2928 * Get RTP session information from stream. 
     2929 */ 
     2930PJ_DEF(pj_status_t) 
     2931pjmedia_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} 
Note: See TracChangeset for help on using the changeset viewer.