Ignore:
Timestamp:
Nov 4, 2016 2:57:20 PM (8 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/include/pjmedia/stream.h

    r5242 r5479  
    3434#include <pjmedia/transport.h> 
    3535#include <pjmedia/vid_codec.h> 
     36#include <pjmedia/stream_common.h> 
    3637#include <pj/sock.h> 
    3738 
     
    431432pjmedia_stream_send_rtcp_bye( pjmedia_stream *stream ); 
    432433 
     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 */ 
     448PJ_DECL(pj_status_t) 
     449pjmedia_stream_get_rtp_session_info(pjmedia_stream *stream, 
     450                                   pjmedia_stream_rtp_sess_info *session_info); 
     451 
     452 
    433453/** 
    434454 * @} 
Note: See TracChangeset for help on using the changeset viewer.