#ifndef MEDIA_CAST_RTP_RECEIVER_RTP_RECEIVER_H_
#define MEDIA_CAST_RTP_RECEIVER_RTP_RECEIVER_H_
#include "base/memory/scoped_ptr.h"
#include "media/cast/cast_config.h"
#include "media/cast/rtcp/rtcp.h"
#include "media/cast/rtp_receiver/receiver_stats.h"
#include "media/cast/rtp_receiver/rtp_parser/rtp_parser.h"
#include "media/cast/rtp_receiver/rtp_receiver_defines.h"
namespace media {
namespace cast {
class RtpReceiver : public RtpParser {
public:
RtpReceiver(base::TickClock* clock,
const AudioReceiverConfig* audio_config,
const VideoReceiverConfig* video_config);
virtual ~RtpReceiver();
static uint32 GetSsrcOfSender(const uint8* rtcp_buffer, size_t length);
bool ReceivedPacket(const uint8* packet, size_t length);
RtpReceiverStatistics* GetStatistics() {
return &stats_;
}
private:
ReceiverStats stats_;
DISALLOW_COPY_AND_ASSIGN(RtpReceiver);
};
}
}
#endif