RtpStreamSettings.seamlessProtection property

ST 2022-7 seamless protection for THIS stream: a second path carrying an identical copy, merged by RTP sequence number as the packets arrive, so that losing either path is invisible downstream.

Per stream rather than per input, because each stream has its own port pair and is protected independently of its siblings.

The redundant path carries RTP only, so RTCP keeps coming from the primary path’s RtpStreamSettings.rtcpPort - except where this stream multiplexes the two onto one port (rtcpPort equal to rtpPort), in which case RTCP is taken from whichever path is currently live. RTCP has no sequence number, so it cannot be merged: one path’s copy is used and the other’s discarded.

Signature:

seamlessProtection?: SeamlessProtectionSettings;