RtpSession API

Name

RtpSession API  -- The RtpSession object provides control on a RTP session as defined in RFC 1889.

Synopsis


#include ortp.h


            RtpSession;
enum        RtpSessionMode;
#define     RTP_CALLBACK_TABLE_MAX_ENTRIES
RtpSession* rtp_session_new                 (int mode);
void        rtp_session_set_scheduling_mode (RtpSession *session,
                                             int yesno);
void        rtp_session_set_blocking_mode   (RtpSession *session,
                                             int yesno);
void        rtp_session_set_profile         (RtpSession *session,
                                             RtpProfile *profile);
RtpProfile* rtp_session_get_profile         (RtpSession *session);
int         rtp_session_set_local_addr      (RtpSession *session,
                                             const char *addr,
                                             int port);
int         rtp_session_set_remote_addr     (RtpSession *session,
                                             const char *addr,
                                             int port);
int         rtp_session_get_local_port      (const RtpSession *session);
void        rtp_session_set_jitter_compensation
                                            (RtpSession *session,
                                             int milisec);
void        rtp_session_set_ssrc            (RtpSession *session,
                                             uint32_t ssrc);
void        rtp_session_set_seq_number      (RtpSession *session,
                                             uint16_t seq);
int         rtp_session_set_send_payload_type
                                            (RtpSession *session,
                                             int paytype);
int         rtp_session_set_recv_payload_type
                                            (RtpSession *session,
                                             int pt);
int         rtp_session_get_send_payload_type
                                            (const RtpSession *session);
int         rtp_session_get_recv_payload_type
                                            (const RtpSession *session);
int         rtp_session_set_payload_type    (RtpSession *session,
                                             int pt);
int         rtp_session_signal_connect      (RtpSession *session,
                                             const