Support for multiple stream codecs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi y'all!

Does *PJMEDIA* allow to create audio streams with multiple codecs support?

Theoretically if both extremes have support for more than just a codec they
should have the ability to switch between them either sending or receiving
audio at any time. This completely makes sense considering that each RTP
packet is an isolated and independent piece of data.
However as far as I can see the *pjmedia_stream_info* struct only contains
one incoming codec format info object.

 struct *pjmedia_stream_info*

{

    pjmedia_type type;     /**< Media type (audio, video)     */

    pjmedia_tp_proto proto;     /**< Transport protocol (RTP/AVP, etc.) */

    pjmedia_dir dir;     /**< Media direction.     */

    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.     */


    pjmedia_codec_info fmt;     /**< Incoming codec format info.     */

    pjmedia_codec_param *param;     /**< Optional codec param.     */

    unsigned tx_pt;     /**< Outgoing codec paylaod type.     */

    unsigned tx_maxptime;/**< Outgoing codec max ptime.     */

    int         tx_event_pt;/**< Outgoing pt for telephone-events.  */

    int rx_event_pt;/**< Incoming pt for telephone-events.  */

    pj_uint32_t ssrc;     /**< RTP SSRC.     */

    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.   */



    pj_bool_t           rtcp_sdes_bye_disabled;

                                    /**< Disable automatic sending of RTCP

                                         SDES and BYE.
*/

};


Regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120815/50d1b8ca/attachment-0001.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux