recovered_packet_receiver.h (1064B)
1 /* 2 * Copyright (c) 2022 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 #ifndef MODULES_RTP_RTCP_INCLUDE_RECOVERED_PACKET_RECEIVER_H_ 11 #define MODULES_RTP_RTCP_INCLUDE_RECOVERED_PACKET_RECEIVER_H_ 12 13 #include "modules/rtp_rtcp/source/rtp_packet_received.h" 14 15 namespace webrtc { 16 17 // Callback interface for packets recovered by FlexFEC or ULPFEC. In 18 // the FlexFEC case, the implementation should be able to demultiplex 19 // the recovered RTP packets based on SSRC. 20 class RecoveredPacketReceiver { 21 public: 22 virtual void OnRecoveredPacket(const RtpPacketReceived& packet) = 0; 23 24 protected: 25 virtual ~RecoveredPacketReceiver() = default; 26 }; 27 28 } // namespace webrtc 29 #endif // MODULES_RTP_RTCP_INCLUDE_RECOVERED_PACKET_RECEIVER_H_