Thread Previous • Date Previous • Date Next • Thread Next |
Question #263863 on rohc changed: https://answers.launchpad.net/rohc/+question/263863 Status: Open => Answered Didier Barvaux proposed the following answer: Hello, Indeed, the rohc_comp_add_rtp_port() function is deprecated because the RTP detection callback can provide the same feature in a more generic way. For the RTP detection callback, look at the examples/rtp_detection.c example. That program compresses one IPv4/UDP/RTP packet and detects RTP streams with one RTP callback function set with the rohc_comp_set_rtp_detection_cb() function. The call to rohc_comp_set_rtp_detection_cb() is performed at line 277. The rtp_detect() function is defined at line 364. The rtp_detect() function extracts the UDP destination port and decides that the packet belongs to a RTP stream only if its destination port equals 10042. This an example. It should help you using the RTP detection callback instead of the deprecated rohc_comp_add_rtp_port() function. Let me know if it helped you. Regards, Didier -- You received this question notification because you are a member of ROHC Team, which is an answer contact for rohc.
Thread Previous • Date Previous • Date Next • Thread Next |