[Live-devel] New "LIVE555 Streaming Media" release - now supporting RTCP multiplexed with RTP on a single port

Ross Finlayson finlayson at live555.com
Tue Mar 25 15:13:33 PDT 2014


The latest release (2014.03.25) of the "LIVE555 Streaming Media" software supports (both transmitting and receiving) RTCP packets that are multiplexed on the same port as RTP packets.  (This is optional behavior; the default behavior is still to have RTP packets sent on an even-numbered port, and RTCP packets sent on the next (i.e., odd-numbered) port.  Also, this applies only to RTP/RTCP-over-UDP, not to RTP/RTCP-over-TCP streaming.)

In particular:
- RTCP-multiplexing-with-RTP is signaled by a media-level attribute "a=rtcp-mux" (as defined in RFC 5761) in the stream's SDP description.  If a RTSP client sees this attribute in the stream's SDP description, it uses a single UDP port number (which can be odd or even) to receive both RTP and RTCP.
- A RTSP server can (optionally) be set up to stream RTCP-multiplexed-with-RTP (in which case it will choose either an odd or even-numbered port, and automatically include the "a=rtcp-mux" attribute in the stream's SDP description).  When programming a RTSP server application, you can enable RTCP-multiplexing-with-RTP by doing the following:
	- If you're creating a "PassiveServerMediaSubsession" (for streaming via multicast), make the "rtpSink" and "rtcpInstance" parameter objects use the same "Groupsock" object.
	- If you're creating an "OnDemandServerMediaSubsession" (for streaming via unicast), either:
		1/ Set the optional "multiplexRTCPWithRTP" parameter (in the "OnDemandServerMediaSubsession" constructor) to True, or
		2/ After the "OnDemandServerMediaSubsession" object has been created, call the new "multiplexRTCPWithRTP()" member function on it.

IMPORTANT NOTE: Few (if any) RTSP clients (other than those that use this software - version 2014.03.25 or later) will support RTCP-multiplexing-with-RTP.  Therefore, if you're programming a RTSP server application, you should not enable this feature, unless you know for sure that all RTCP clients will be using our software (version 2014.03.25 or later).

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20140325/56bbe403/attachment-0001.html>


More information about the live-devel mailing list