fail to transmit PCM frame to peer

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

 



Dear All,

        Please help to check if the scenario of transmit PCM frame to peer!!

1: using Android AudioRecord to get PCM frame from input device with read() and size of channel->out_pkt_size - sizeof(pjmedia_rtp_hdr)
2: pjmedia_rtp_encode_rtp()
3: pj_memcpy(channel->out_pkt, rtphdr, sizeof(pjmedia_rtp_hdr));
4: pjmedia_transport_send_rtp()
5: pjmedia_rtcp_tx_rtp(&stream->rtcp, frame_out.size);
    stream->rtcp.stat.rtp_tx_last_ts = pj_ntohl(stream->enc->rtp.out_hdr.ts);
    stream->rtcp.stat.rtp_tx_last_seq = pj_ntohs(stream->enc->rtp.out_hdr.seq);

All of this scenario did in put_frame_imp() in stream.c. Is there anything need to do for transmit PCM frame data??
Thanks for your BIG help in advanced!!!!!


BR,
Duncan Lee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091029/2a628715/attachment.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