lemenkov / rtplib

OUTDATED. Use https://github.com/xirsys/xmedialib instead!!! Erlang library for dealing with rtp/rtcp (STILL IN A VERY EARLY STAGE)
52 stars 17 forks source link

RTP/RTCP (de)muxing #31

Closed lemenkov closed 12 years ago

lemenkov commented 12 years ago

RTP decoder must be able to detect and parse muxed RTCP packets (just check for the Payload value and pass the binary to the rtcp:decode(). The RTP/RTCP muxing was introduced as a draft (not so) recently:

http://tools.ietf.org/html/draft-ietf-avt-rtp-and-rtcp-mux-07 http://tools.ietf.org/html/rfc5761

This issue is a blocker for this one:

https://github.com/lemenkov/erlrtpproxy/issues/23

How to build a list of Payload types which can be used as the indication of the muxed RTCP:

1> lists:map(fun(X) -> <<_:1, Payload:7>> = <<X:8>>, {ok, Payload} end, [192, 193, 194, 195, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210]).