我是 android 编程新手,我需要有关 android RTP 编程的知识。问题
- 如何在 android 设备上捕获麦克风音频数据?
- 如何在不使用 API的情况下使用捕获的麦克风音频数据构造 RTP 数据包?
- 如何将 RTP 数据包传输到其他安卓设备?
- 如何在android中播放接收到的RTP数据包?
For transmitting and receiving RTP packets, I would suggest looking into the jlibrtp library. Basically you initialize it with 2 DatagramSockets (one for sending RTP data and one for receiving RTCP data), define a payload type, add a recipient, and send byte arrays. I beleive it handles the RTP timestamps by itself, but you have to make sure you're payload is already formatted by the RFC reccommendations.