j0r1 / JRTPLIB

RTP Library
MIT License
581 stars 220 forks source link

How to handle RTCP using custom port? #36

Open chengsu opened 5 years ago

chengsu commented 5 years ago

Source use 45180 to send RTP packet and 40860 to send RTCP (sender report) packet。 My program use 50000 to receive RTP packet and 50001 to receive RTCP packet, but send RTCP (receiver report) to 45181 on source。 How can I add destination with custom RTCP port?

j0r1 commented 5 years ago

Can't you use the constructor

RTPIPv4Address(uint32_t ip, uint16_t port, uint16_t rtcpsendport)

or am I interpreting your question wrong?