Загрузка данных


#define PJ_DECL_STREAM_INFO_COMMON_MEMBER() \
    pjmedia_type        type;       /**< Media type (audio, video)          */ \
    pjmedia_tp_proto    proto;      /**< Transport protocol (RTP/AVP, etc.) */ \
    pjmedia_dir         dir;        /**< Media direction.                   */ \
    pj_sockaddr         local_addr; /**< Local RTP address                  */ \
    pj_sockaddr         rem_addr;   /**< Remote RTP address                 */ \
    pj_sockaddr         rem_rtcp;   /**< Optional remote RTCP address. If \
                                         sin_family is zero, the RTP address \
                                         will be calculated from RTP.       */ \
    pj_bool_t           rtcp_mux;   /**< Use RTP and RTCP multiplexing.     */ \
\
    pj_bool_t           rtcp_xr_enabled; \
                                    /**< Specify whether RTCP XR is enabled.*/ \
    pj_uint32_t         rtcp_xr_interval; /**< RTCP XR interval.            */ \
    pj_sockaddr         rtcp_xr_dest;/**<Additional remote RTCP XR address. \
                                         This is useful for third-party (e.g: \
                                         network monitor) to monitor the \
                                         stream. If sin_family is zero, \
                                         this will be ignored.              */ \
\
    pjmedia_rtcp_fb_info loc_rtcp_fb; /**< Local RTCP-FB info.              */ \
    pjmedia_rtcp_fb_info rem_rtcp_fb; /**< Remote RTCP-FB info.             */ \
\
    unsigned            tx_pt;      /**< Outgoing codec payload type.       */ \
    unsigned            rx_pt;      /**< Incoming codec payload type.       */ \
\
    unsigned            tx_red_pt;  /**< Outgoing pt for redundancy.        */ \
    int                 tx_red_level;/**< Outgoing redundancy level.        */ \
    unsigned            rx_red_pt;  /**< Incoming pt for redundancy.        */ \
    int                 rx_red_level;/**< Incoming redundancy level.        */ \
\
    pj_uint32_t         ssrc;       /**< RTP SSRC.                          */ \
    pj_str_t            cname;      /**< RTCP CNAME.                        */ \
    pj_bool_t           has_rem_ssrc;/**<Has remote RTP SSRC?               */ \
    pj_uint32_t         rem_ssrc;   /**< Remote RTP SSRC.                   */ \
    pj_str_t            rem_cname;  /**< Remote RTCP CNAME.                 */ \
    pj_uint32_t         rtp_ts;     /**< Initial RTP timestamp.             */ \
    pj_uint16_t         rtp_seq;    /**< Initial RTP sequence number.       */ \
    pj_uint8_t          rtp_seq_ts_set; \
                                    /**< Bitmask flags if initial RTP sequence \
                                         and/or timestamp for sender are set. \
                                         bit 0/LSB : sequence flag  \
                                         bit 1     : timestamp flag         */ \
    int                 jb_init;    /**< Jitter buffer init delay in msec. \
                                         (-1 for default).                  */ \
    int                 jb_min_pre; /**< Jitter buffer minimum prefetch \
                                         delay in msec (-1 for default).    */ \
    int                 jb_max_pre; /**< Jitter buffer maximum prefetch \
                                         delay in msec (-1 for default).    */ \
    int                 jb_max;     /**< Jitter buffer max delay in msec.   */ \
    pjmedia_jb_discard_algo jb_discard_algo; \
                                    /**< Jitter buffer discard algorithm.   */ \
\
    PJ_DECL_STREAM_INFO_KA_MEMBER() \
\
    pj_bool_t           rtcp_sdes_bye_disabled; \
                                    /**< Disable automatic sending of RTCP \
                                         SDES and BYE.                      */ \