Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Side by Side Diff: media/cast/net/rtcp/receiver_rtcp_session.h

Issue 1709863002: Add Cast PLI support on sender side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate Pli message from Cast message. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ 5 #ifndef MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_
6 #define MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ 6 #define MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_
7 7
8 #include "base/time/tick_clock.h" 8 #include "base/time/tick_clock.h"
9 #include "media/cast/common/clock_drift_smoother.h" 9 #include "media/cast/common/clock_drift_smoother.h"
10 #include "media/cast/net/pacing/paced_sender.h" 10 #include "media/cast/net/pacing/paced_sender.h"
(...skipping 25 matching lines...) Expand all
36 uint32_t remote_ssrc() const { return remote_ssrc_; } 36 uint32_t remote_ssrc() const { return remote_ssrc_; }
37 37
38 // |cast_message|, |rtcp_events| and |rtp_receiver_statistics| are optional; 38 // |cast_message|, |rtcp_events| and |rtp_receiver_statistics| are optional;
39 // if |cast_message| is provided the RTCP receiver report will append a Cast 39 // if |cast_message| is provided the RTCP receiver report will append a Cast
40 // message containing Acks and Nacks; |target_delay| is sent together with 40 // message containing Acks and Nacks; |target_delay| is sent together with
41 // |cast_message|. If |rtcp_events| is provided the RTCP receiver report will 41 // |cast_message|. If |rtcp_events| is provided the RTCP receiver report will
42 // append the log messages. 42 // append the log messages.
43 void SendRtcpReport( 43 void SendRtcpReport(
44 RtcpTimeData time_data, 44 RtcpTimeData time_data,
45 const RtcpCastMessage* cast_message, 45 const RtcpCastMessage* cast_message,
46 const RtcpPliMessage* pli_message,
46 base::TimeDelta target_delay, 47 base::TimeDelta target_delay,
47 const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events, 48 const ReceiverRtcpEventSubscriber::RtcpEvents* rtcp_events,
48 const RtpReceiverStatistics* rtp_receiver_statistics) const; 49 const RtpReceiverStatistics* rtp_receiver_statistics) const;
49 50
50 // Handle incoming RTCP packet. 51 // Handle incoming RTCP packet.
51 // Returns false if it is not a RTCP packet or it is not directed to 52 // Returns false if it is not a RTCP packet or it is not directed to
52 // this session, e.g. SSRC doesn't match. 53 // this session, e.g. SSRC doesn't match.
53 bool IncomingRtcpPacket(const uint8_t* data, size_t length) override; 54 bool IncomingRtcpPacket(const uint8_t* data, size_t length) override;
54 55
55 // If available, returns true and sets the output arguments to the latest 56 // If available, returns true and sets the output arguments to the latest
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // re-construct "expanded" values. 100 // re-construct "expanded" values.
100 RtcpParser parser_; 101 RtcpParser parser_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(ReceiverRtcpSession); 103 DISALLOW_COPY_AND_ASSIGN(ReceiverRtcpSession);
103 }; 104 };
104 105
105 } // namespace cast 106 } // namespace cast
106 } // namespace media 107 } // namespace media
107 108
108 #endif // MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_ 109 #endif // MEDIA_CAST_NET_RTCP_RECEIVER_RTCP_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698